Skip to content

Commit 1850b19

Browse files
Use tox-gh to simplify test matrix on GitHub
1 parent 92a1439 commit 1850b19

File tree

2 files changed

+12
-14
lines changed

2 files changed

+12
-14
lines changed

.github/workflows/test.yml

Lines changed: 3 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -14,23 +14,12 @@ jobs:
1414
matrix:
1515
# https://docs.djangoproject.com/en/dev/faq/install/#what-python-version-can-i-use-with-django
1616
python-version:
17+
- '3.8'
18+
- '3.9'
1719
- '3.10'
1820
- '3.11'
1921
- '3.12'
2022
- '3.13-dev'
21-
tox-environment:
22-
- django42
23-
- django50
24-
- django51
25-
- djangomain
26-
include:
27-
- python-version: 3.8
28-
tox-environment: django42
29-
- python-version: 3.9
30-
tox-environment: django42
31-
32-
env:
33-
TOXENV: ${{ matrix.tox-environment }}
3423

3524
steps:
3625
- name: Install LDAP libs
@@ -50,7 +39,7 @@ jobs:
5039
python-version: ${{ matrix.python-version }}
5140

5241
- name: Install dependencies
53-
run: python -m pip install tox
42+
run: python -m pip install tox-gh
5443

5544
- name: Run tests
5645
run: tox

tox.ini

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,15 @@ envlist =
88
djangomain
99
isolated_build = true
1010

11+
[gh]
12+
python =
13+
3.8 = django42
14+
3.9 = django42
15+
3.10 = django{42,50,51,main}
16+
3.11 = django{42,50,51,main}
17+
3.12 = django{42,50,51,main}
18+
3.13 = django{42,50,51,main}
19+
1120
[testenv]
1221
commands = {envpython} -Wa -b -m django test --settings tests.settings
1322
deps =

0 commit comments

Comments
 (0)