Skip to content

Commit 4f94fbc

Browse files
committed
ci: Separate flake8/docs from tests
This gives better indication what kind of error has occurred.
1 parent 5f171a2 commit 4f94fbc

File tree

1 file changed

+13
-4
lines changed

1 file changed

+13
-4
lines changed

.github/workflows/tox.yml

+13-4
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,20 @@ name: tox
33
on: [push, pull_request]
44

55
jobs:
6-
tox:
6+
flake8-and-docs:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@v4
10+
- name: Setup Python
11+
uses: actions/setup-python@v4
12+
with:
13+
python-version: 3.12
14+
- name: Install Tox and any other packages
15+
run: pip install tox
16+
- name: Run flake8 / docs
17+
run: tox -e flake8,docs
718

19+
test:
820
runs-on: ubuntu-latest
921
strategy:
1022
matrix:
@@ -22,6 +34,3 @@ jobs:
2234
run: pip install tox
2335
- name: Run Tox
2436
run: tox -e py
25-
- name: Run flake8 / docs
26-
run: tox -e flake8,docs
27-
if: matrix.python == 3.12

0 commit comments

Comments
 (0)