Skip to content

Commit

Permalink
Update CI to run on currently supported Python/Django versions
Browse files Browse the repository at this point in the history
  • Loading branch information
philipstarkey committed Apr 18, 2024
1 parent 15c7d6e commit 06d3211
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 18 deletions.
24 changes: 13 additions & 11 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,22 +13,24 @@ jobs:
fail-fast: false
matrix:
python-version:
- "3.6"
- "3.7"
- "3.8"
- "3.9"
- "pypy-3.6"
- "pypy-3.7"
- "3.10"
- "3.11"
- "3.12"
- "pypy-3.9"
- "pypy-3.10"
tox-env:
- "dj22" # LTS
- "dj31"
- "dj32" # LTS
- "dj42" # LTS
- "dj50"
exclude:
# Python 3.9 is compatible with Django 3.1+
# Python 3.8/3.9 is incompatible with Django 5.0+
- python-version: "3.8"
tox-env: "dj50"
- python-version: "3.9"
tox-env: "dj22"
- python-version: "3.9"
tox-env: "dj30"
tox-env: "dj50"
- python-version: "pypy-3.9"
tox-env: "dj50"

env:
TOXENV: ${{ matrix.tox-env }}
Expand Down
12 changes: 5 additions & 7 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,12 @@
# By moving it out of the way (~500MB), we trim test execution time by > 80%.
toxworkdir = {homedir}/.toxenvs/django-click
envlist =
dj{22,31,32},flake8
dj{42,50},flake8

[gh-actions]
django =
2.2: dj22
3.1: dj31
3.2: dj32
4.2: dj42
5.0: dj50

[testenv]
usedevelop = true
Expand All @@ -20,9 +19,8 @@ setenv =
PYTHONPATH={toxinidir}/djclick/test/testprj
deps =
-rrequirements-test.txt
dj22: django>=2.2,<2.3
dj31: django>=3.1,<3.2
dj32: django>=3.2,<3.3
dj42: django>=4.2,<4.3
dj50: django>=5.0,<5.1
commands = py.test -rxs --cov-report= --cov-append --cov djclick {posargs:djclick}


Expand Down

0 comments on commit 06d3211

Please sign in to comment.