Skip to content

Commit e3c5c4c

Browse files
committed
build: use separate jobs for linting and documentation
1 parent c0f9f2b commit e3c5c4c

File tree

2 files changed

+14
-9
lines changed

2 files changed

+14
-9
lines changed

.github/workflows/tests.yml

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,17 @@ jobs:
1616
strategy:
1717
fail-fast: false
1818
matrix:
19-
python-version:
20-
- "3.9"
21-
- "3.10"
22-
- "3.11"
23-
- "3.12"
24-
- "3.13"
25-
- "3.14"
19+
include:
20+
- python-version: "3.9"
21+
- python-version: "3.10"
22+
- python-version: "3.11"
23+
- python-version: "3.12"
24+
- python-version: "3.13"
25+
- python-version: "3.14"
26+
- python-version: "3.9"
27+
tox-env: lint
28+
- python-version: "3.9"
29+
tox-env: doc
2630
steps:
2731
- uses: actions/checkout@v6
2832
with:
@@ -46,8 +50,9 @@ jobs:
4650
python -m pip install --upgrade pip
4751
pip install tox tox-gh-actions wheel
4852
- name: Run tests with tox
49-
run: tox
53+
run: tox ${{ matrix.tox-env && format('-e {0}', matrix.tox-env) || '' }}
5054
- name: Collect coveralls data
55+
if: ${{ !matrix.tox-env }}
5156
uses: AndreMiras/coveralls-python-action@develop
5257
with:
5358
parallel: true

tox.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ skip_missing_interpreters = True
44

55
[gh-actions]
66
python =
7-
3.9: py39, lint, doc
7+
3.9: py39
88
3.10: py310
99
3.11: py311
1010
3.12: py312

0 commit comments

Comments
 (0)