File tree Expand file tree Collapse file tree 2 files changed +49
-31
lines changed Expand file tree Collapse file tree 2 files changed +49
-31
lines changed Original file line number Diff line number Diff line change 88 - main
99 tags:
1010 - '*'
11+ paths-ignore:
12+ - 'lglpy/**'
1113 pull_request:
1214 branches:
1315 - main
16+ paths-ignore:
17+ - 'lglpy/**'
1418
1519jobs:
16- python-test:
17- name: Python tests
18- runs-on: ubuntu-22.04
19- steps:
20- - name: Git checkout
21- uses: actions/checkout@v4
22- with:
23- submodules: 'true'
24-
25- - name: Get Python modules
26- run: |
27- python3 -m pip install --upgrade pip
28- python3 -m pip install pycodestyle mypy
29-
30- - name: Check code style
31- run: |
32- python3 -m pycodestyle --config .pycodestyle.ini ./*.py
33- python3 -m pycodestyle --config .pycodestyle.ini ./lglpy
34- python3 -m pycodestyle --config .pycodestyle.ini ./generator
35-
36- - name: Check typing
37- run: |
38- python3 -m mypy ./*.py
39- python3 -m mypy ./lglpy
40- python3 -m mypy ./generator
41-
42- - name: Run unit tests
43- # Note: Only run tests that do not require a connected device
44- run: |
45- python3 -m lglpy.ui.test
46-
4720 build-ubuntu-x64-clang:
4821 name: Ubuntu x64 Clang
4922 runs-on: ubuntu-22.04
Original file line number Diff line number Diff line change 1+ name: Python test
2+ run-name: Python test PR${{ github.event.number }}
3+
4+ on:
5+ workflow_dispatch:
6+ push:
7+ branches:
8+ - main
9+ tags:
10+ - '*'
11+ pull_request:
12+ branches:
13+ - main
14+
15+ jobs:
16+ python-test:
17+ name: Python tests
18+ runs-on: ubuntu-22.04
19+ steps:
20+ - name: Git checkout
21+ uses: actions/checkout@v4
22+ with:
23+ submodules: 'true'
24+
25+ - name: Get Python modules
26+ run: |
27+ python3 -m pip install --upgrade pip
28+ python3 -m pip install pycodestyle mypy
29+
30+ - name: Check code style
31+ run: |
32+ python3 -m pycodestyle --config .pycodestyle.ini ./*.py
33+ python3 -m pycodestyle --config .pycodestyle.ini ./lglpy
34+ python3 -m pycodestyle --config .pycodestyle.ini ./generator
35+
36+ - name: Check typing
37+ run: |
38+ python3 -m mypy ./*.py
39+ python3 -m mypy ./lglpy
40+ python3 -m mypy ./generator
41+
42+ - name: Run unit tests
43+ # Note: Only run tests that do not require a connected device
44+ run: |
45+ python3 -m lglpy.ui.test
You can’t perform that action at this time.
0 commit comments