Skip to content

Commit 7c7b72e

Browse files
committed
Split GHA lint and test jobs
1 parent d4d0b3d commit 7c7b72e

File tree

1 file changed

+20
-5
lines changed

1 file changed

+20
-5
lines changed

.github/workflows/test-suite.yml

Lines changed: 20 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,27 @@ on:
1010
- main
1111

1212
jobs:
13+
lint:
14+
name: "Python Lint"
15+
runs-on: ubuntu-latest
16+
steps:
17+
- uses: actions/checkout@v4
18+
19+
- uses: actions/setup-python@v5
20+
with:
21+
python-version: "3.12"
22+
23+
- name: Install dependencies
24+
run: |
25+
python -m pip install --upgrade pip
26+
pip install tox
27+
28+
- name: Lint with tox
29+
run: tox -e lint
30+
1331
test:
14-
name: "Python ${{matrix.python-version}} ${{ matrix.os }}"
32+
name: "Python Test ${{matrix.python-version}} ${{ matrix.os }}"
33+
needs: [lint]
1534
runs-on: "${{ matrix.os }}"
1635
strategy:
1736
matrix:
@@ -45,7 +64,3 @@ jobs:
4564
4665
- name: Test with tox
4766
run: tox
48-
49-
- name: Lint with tox
50-
run: tox -e lint
51-
if: "${{ matrix.python-version == '3.12' && matrix.os == 'ubuntu-latest' }}"

0 commit comments

Comments
 (0)