Skip to content

Commit c5226e7

Browse files
authored
Fixed #1693 -- Run tests on python 3.11 (#1694)
1 parent 4cf595c commit c5226e7

File tree

2 files changed

+9
-7
lines changed

2 files changed

+9
-7
lines changed

.github/workflows/test.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
fail-fast: false
1515
max-parallel: 5
1616
matrix:
17-
python-version: ['3.7', '3.8', '3.9', '3.10']
17+
python-version: ['3.7', '3.8', '3.9', '3.10', '3.11']
1818

1919
services:
2020
mariadb:
@@ -82,7 +82,7 @@ jobs:
8282
fail-fast: false
8383
max-parallel: 5
8484
matrix:
85-
python-version: ['3.7', '3.8', '3.9', '3.10']
85+
python-version: ['3.7', '3.8', '3.9', '3.10', '3.11']
8686
database: [postgresql, postgis]
8787

8888
services:
@@ -151,7 +151,7 @@ jobs:
151151
fail-fast: false
152152
max-parallel: 5
153153
matrix:
154-
python-version: ['3.7', '3.8', '3.9', '3.10']
154+
python-version: ['3.7', '3.8', '3.9', '3.10', '3.11']
155155

156156
steps:
157157
- uses: actions/checkout@v3

tox.ini

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ envlist =
44
packaging
55
py{37}-dj{32}-{sqlite,postgresql,postgis,mysql}
66
py{38,39,310}-dj{32,40,41,main}-{sqlite,postgresql,postgis,mysql}
7+
py{311}-dj{main}-{sqlite,postgresql,postgis,mysql}
78

89
[testenv]
910
deps =
@@ -44,25 +45,25 @@ whitelist_externals = make
4445
pip_pre = True
4546
commands = python -b -W always -m coverage run -m django test -v2 {posargs:tests}
4647

47-
[testenv:py{37,38,39,310}-dj{32,40,41,main}-postgresql]
48+
[testenv:py{37,38,39,310,311}-dj{32,40,41,main}-postgresql]
4849
setenv =
4950
{[testenv]setenv}
5051
DB_BACKEND = postgresql
5152
DB_PORT = {env:DB_PORT:5432}
5253

53-
[testenv:py{37,38,39,310}-dj{32,40,41,main}-postgis]
54+
[testenv:py{37,38,39,310,311}-dj{32,40,41,main}-postgis]
5455
setenv =
5556
{[testenv]setenv}
5657
DB_BACKEND = postgis
5758
DB_PORT = {env:DB_PORT:5432}
5859

59-
[testenv:py{37,38,39,310}-dj{32,40,41,main}-mysql]
60+
[testenv:py{37,38,39,310,311}-dj{32,40,41,main}-mysql]
6061
setenv =
6162
{[testenv]setenv}
6263
DB_BACKEND = mysql
6364
DB_PORT = {env:DB_PORT:3306}
6465

65-
[testenv:py{37,38,39,310}-dj{32,40,41,main}-sqlite]
66+
[testenv:py{37,38,39,310,311}-dj{32,40,41,main}-sqlite]
6667
setenv =
6768
{[testenv]setenv}
6869
DB_BACKEND = sqlite3
@@ -90,6 +91,7 @@ python =
9091
3.8: py38
9192
3.9: py39
9293
3.10: py310
94+
3.11: py311
9395

9496
[gh-actions:env]
9597
DB_BACKEND =

0 commit comments

Comments
 (0)