Skip to content

Commit fed70e4

Browse files
committed
update testing
1 parent 78b1889 commit fed70e4

File tree

3 files changed

+21
-40
lines changed

3 files changed

+21
-40
lines changed

.github/workflows/main.yml

Lines changed: 2 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -22,42 +22,17 @@ jobs:
2222

2323
strategy:
2424
matrix:
25-
DJANGO_VERSION: ['3.2.*', '4.0.*', '4.1.*', '4.2.*', '5.0.*', '5.1.*', '5.2.*']
26-
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12', '3.13']
25+
DJANGO_VERSION: ['4.2.*', '5.0.*', '5.1.*', '5.2.*']
26+
python-version: ['3.9', '3.10', '3.11', '3.12', '3.13']
2727
exclude:
28-
- DJANGO_VERSION: '3.2.*'
29-
python-version: '3.11'
30-
- DJANGO_VERSION: '3.2.*'
31-
python-version: '3.12'
32-
- DJANGO_VERSION: '3.2.*'
33-
python-version: '3.13'
34-
35-
- DJANGO_VERSION: '4.0.*'
36-
python-version: '3.11'
37-
- DJANGO_VERSION: '4.0.*'
38-
python-version: '3.12'
39-
- DJANGO_VERSION: '4.0.*'
40-
python-version: '3.13'
41-
42-
- DJANGO_VERSION: '4.1.*'
43-
python-version: '3.12'
44-
- DJANGO_VERSION: '4.1.*'
45-
python-version: '3.13'
46-
47-
- DJANGO_VERSION: '5.0.*'
48-
python-version: '3.8'
4928
- DJANGO_VERSION: '5.0.*'
5029
python-version: '3.9'
5130
- DJANGO_VERSION: '5.0.*'
5231
python-version: '3.13'
5332

54-
- DJANGO_VERSION: '5.1.*'
55-
python-version: '3.8'
5633
- DJANGO_VERSION: '5.1.*'
5734
python-version: '3.9'
5835

59-
- DJANGO_VERSION: '5.2.*'
60-
python-version: '3.8'
6136
- DJANGO_VERSION: '5.2.*'
6237
python-version: '3.9'
6338
fail-fast: false

tests/settings.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,3 +79,5 @@
7979

8080
if django.VERSION >= (4, 1):
8181
FORM_RENDERER = "django.forms.renderers.DjangoDivFormRenderer"
82+
if django.VERSION >= (5, 0):
83+
FORM_RENDERER = "django.forms.renderers.DjangoTemplates"

tox.ini

Lines changed: 17 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -4,29 +4,33 @@ envlist =
44
py{313,312,311,310}-dj52
55
py{313,312,311,310}-dj51
66
py{312,311,310}-dj50
7-
py{312,311,310,39,38}-dj42,
8-
py{311,310,39,38}-dj41,
9-
py{310,39,38}-dj40,
10-
py{310,39,38}-dj32,
11-
py{39,38}-dj31,
7+
py{312,311,310,39,38}-dj42
8+
py{311,310,39,38}-dj41
9+
py{310,39,38}-dj40
10+
py{310,39,38}-dj32
11+
py{39,38}-dj31
1212

1313
[testenv]
1414
setenv =
1515
PYTHONPATH = {toxinidir}:{toxinidir}/plans_payments
16+
dj31: DJANGO_DEP=Django>=3.1,<3.2
17+
dj32: DJANGO_DEP=Django>=3.2,<3.3
18+
dj40: DJANGO_DEP=Django>=4.0,<4.1
19+
dj41: DJANGO_DEP=Django>=4.1,<4.2
20+
dj42: DJANGO_DEP=Django>=4.2,<5.0
21+
dj50: DJANGO_DEP=Django>=5.0,<5.1
22+
dj51: DJANGO_DEP=Django>=5.1,<5.2
23+
dj52: DJANGO_DEP=Django>=5.2,<6.0
1624
commands =
25+
python -m pip install -U pip
26+
python -m pip install -r{toxinidir}/requirements_test.txt
27+
# Install Django last to ensure correct version is installed
28+
python -m pip install {env:DJANGO_DEP}
1729
python --version
1830
python manage.py --version
1931
python -W error::DeprecationWarning -m coverage run manage.py test
2032
deps =
2133
-r{toxinidir}/requirements_test.txt
22-
dj31: Django>=3.1,<3.2
23-
dj32: Django>=3.2,<3.3
24-
dj40: Django>=4.0,<4.1
25-
dj41: Django>=4.1,<4.2
26-
dj42: Django>=4.2,<5.0
27-
dj50: Django>=5.0,<5.1
28-
dj51: Django>=5.1,<5.2
29-
dj52: Django>=5.2,<6.0
3034
basepython =
3135
py38: python3.8
3236
py39: python3.9

0 commit comments

Comments
 (0)