Skip to content

Commit 02e6d6a

Browse files
committed
Tox
1 parent cf56246 commit 02e6d6a

File tree

2 files changed

+11
-4
lines changed

2 files changed

+11
-4
lines changed

.circleci/config.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,12 @@ commands:
4242
environment:
4343
DATABASE_URL: 'postgres://psqlextra:psqlextra@localhost:5432/psqlextra'
4444

45+
- run:
46+
name: Run tests psycopg3
47+
command: tox -e 'py<< parameters.pyversion >>-dj{<< parameters.djversions >>}'
48+
environment:
49+
DATABASE_URL: 'postgres://psqlextra:psqlextra@localhost:5432/psqlextra'
50+
4551

4652
jobs:
4753
test-python36:
@@ -78,7 +84,7 @@ jobs:
7884
extra: test
7985
- run-tests:
8086
pyversion: 38
81-
djversions: 20,21,22,30,31,32,40
87+
djversions: 20,21,22,30,31,32,40,42
8288

8389
test-python39:
8490
executor:
@@ -90,7 +96,7 @@ jobs:
9096
extra: test
9197
- run-tests:
9298
pyversion: 39
93-
djversions: 21,22,30,31,32,40
99+
djversions: 21,22,30,31,32,40,42
94100

95101
test-python310:
96102
executor:
@@ -102,7 +108,7 @@ jobs:
102108
extra: test
103109
- run-tests:
104110
pyversion: 310
105-
djversions: 21,22,30,31,32,40
111+
djversions: 21,22,30,31,32,40,42
106112
- store_test_results:
107113
path: reports
108114
- run:

tox.ini

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[tox]
2-
envlist = py36-dj{20,21,22,30,31,32}, py37-dj{20,21,22,30,31,32}, py38-dj{20,21,22,30,31,32,40}, py39-dj{21,22,30,31,32,40}, py310-dj{21,22,30,31,32,40}
2+
envlist = py36-dj{20,21,22,30,31,32}, py37-dj{20,21,22,30,31,32}, py38-dj{20,21,22,30,31,32,40,42}, py39-dj{21,22,30,31,32,40,42}, py310-dj{21,22,30,31,32,40,42}
33

44
[testenv]
55
deps =
@@ -10,6 +10,7 @@ deps =
1010
dj31: Django~=3.1.0
1111
dj32: Django~=3.2.0
1212
dj40: Django~=4.0.0
13+
dj42: Django~=4.2.0 psycopg~=3.1.0
1314
.[test]
1415
setenv =
1516
DJANGO_SETTINGS_MODULE=settings

0 commit comments

Comments
 (0)