Skip to content

Commit

Permalink
Use tox-gh to simplify test matrix on GitHub
Browse files Browse the repository at this point in the history
  • Loading branch information
francoisfreitag committed Jul 19, 2024
1 parent 92a1439 commit 1850b19
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 14 deletions.
17 changes: 3 additions & 14 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,23 +14,12 @@ jobs:
matrix:
# https://docs.djangoproject.com/en/dev/faq/install/#what-python-version-can-i-use-with-django
python-version:
- '3.8'
- '3.9'
- '3.10'
- '3.11'
- '3.12'
- '3.13-dev'
tox-environment:
- django42
- django50
- django51
- djangomain
include:
- python-version: 3.8
tox-environment: django42
- python-version: 3.9
tox-environment: django42

env:
TOXENV: ${{ matrix.tox-environment }}

steps:
- name: Install LDAP libs
Expand All @@ -50,7 +39,7 @@ jobs:
python-version: ${{ matrix.python-version }}

- name: Install dependencies
run: python -m pip install tox
run: python -m pip install tox-gh

- name: Run tests
run: tox
9 changes: 9 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,15 @@ envlist =
djangomain
isolated_build = true

[gh]
python =
3.8 = django42
3.9 = django42
3.10 = django{42,50,51,main}
3.11 = django{42,50,51,main}
3.12 = django{42,50,51,main}
3.13 = django{42,50,51,main}

[testenv]
commands = {envpython} -Wa -b -m django test --settings tests.settings
deps =
Expand Down

0 comments on commit 1850b19

Please sign in to comment.