Skip to content

Commit 06d3211

Browse files
committed
Update CI to run on currently supported Python/Django versions
1 parent 15c7d6e commit 06d3211

File tree

2 files changed

+18
-18
lines changed

2 files changed

+18
-18
lines changed

.github/workflows/ci.yml

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -13,22 +13,24 @@ jobs:
1313
fail-fast: false
1414
matrix:
1515
python-version:
16-
- "3.6"
17-
- "3.7"
1816
- "3.8"
1917
- "3.9"
20-
- "pypy-3.6"
21-
- "pypy-3.7"
18+
- "3.10"
19+
- "3.11"
20+
- "3.12"
21+
- "pypy-3.9"
22+
- "pypy-3.10"
2223
tox-env:
23-
- "dj22" # LTS
24-
- "dj31"
25-
- "dj32" # LTS
24+
- "dj42" # LTS
25+
- "dj50"
2626
exclude:
27-
# Python 3.9 is compatible with Django 3.1+
27+
# Python 3.8/3.9 is incompatible with Django 5.0+
28+
- python-version: "3.8"
29+
tox-env: "dj50"
2830
- python-version: "3.9"
29-
tox-env: "dj22"
30-
- python-version: "3.9"
31-
tox-env: "dj30"
31+
tox-env: "dj50"
32+
- python-version: "pypy-3.9"
33+
tox-env: "dj50"
3234

3335
env:
3436
TOXENV: ${{ matrix.tox-env }}

tox.ini

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,12 @@
44
# By moving it out of the way (~500MB), we trim test execution time by > 80%.
55
toxworkdir = {homedir}/.toxenvs/django-click
66
envlist =
7-
dj{22,31,32},flake8
7+
dj{42,50},flake8
88

99
[gh-actions]
1010
django =
11-
2.2: dj22
12-
3.1: dj31
13-
3.2: dj32
11+
4.2: dj42
12+
5.0: dj50
1413

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

2826

0 commit comments

Comments
 (0)