Skip to content

Commit df46e0c

Browse files
committed
Use tox-gh for CI in github actions
1 parent 08cf496 commit df46e0c

File tree

2 files changed

+12
-5
lines changed

2 files changed

+12
-5
lines changed

.github/workflows/tox.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
build:
1414
runs-on: ubuntu-latest
1515
strategy:
16-
max-parallel: 4
16+
fail-fast: false
1717
matrix:
1818
python-version: ['3.7', '3.8', '3.9', '3.10']
1919

@@ -26,8 +26,8 @@ jobs:
2626
with:
2727
python-version: ${{ matrix.python }}
2828
- name: Update pip
29-
run: python3 -m pip install -U pip
30-
- name: Install tox
31-
run: python3 -m pip install tox
29+
run: python -m pip install -U pip
30+
- name: Install tox-gh
31+
run: python -m pip install tox-gh
3232
- name: Run tox
33-
run: python3 -m tox
33+
run: tox4 run

tox.ini

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,3 +50,10 @@ per-file-ignores =
5050
setup.py:D
5151
tests/*:D
5252
max_complexity = 15
53+
54+
[gh]
55+
python =
56+
3.7 = py37, mypy
57+
3.8 = py38, mypy
58+
3.9 = py39, mypy
59+
3.10 = py310, flake8, mypy

0 commit comments

Comments
 (0)