Skip to content

Commit

Permalink
Fixed #1693 -- Run tests on python 3.11 (#1694)
Browse files Browse the repository at this point in the history
  • Loading branch information
pauloxnet authored Oct 25, 2022
1 parent 4cf595c commit c5226e7
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
fail-fast: false
max-parallel: 5
matrix:
python-version: ['3.7', '3.8', '3.9', '3.10']
python-version: ['3.7', '3.8', '3.9', '3.10', '3.11']

services:
mariadb:
Expand Down Expand Up @@ -82,7 +82,7 @@ jobs:
fail-fast: false
max-parallel: 5
matrix:
python-version: ['3.7', '3.8', '3.9', '3.10']
python-version: ['3.7', '3.8', '3.9', '3.10', '3.11']
database: [postgresql, postgis]

services:
Expand Down Expand Up @@ -151,7 +151,7 @@ jobs:
fail-fast: false
max-parallel: 5
matrix:
python-version: ['3.7', '3.8', '3.9', '3.10']
python-version: ['3.7', '3.8', '3.9', '3.10', '3.11']

steps:
- uses: actions/checkout@v3
Expand Down
10 changes: 6 additions & 4 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ envlist =
packaging
py{37}-dj{32}-{sqlite,postgresql,postgis,mysql}
py{38,39,310}-dj{32,40,41,main}-{sqlite,postgresql,postgis,mysql}
py{311}-dj{main}-{sqlite,postgresql,postgis,mysql}

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

[testenv:py{37,38,39,310}-dj{32,40,41,main}-postgresql]
[testenv:py{37,38,39,310,311}-dj{32,40,41,main}-postgresql]
setenv =
{[testenv]setenv}
DB_BACKEND = postgresql
DB_PORT = {env:DB_PORT:5432}

[testenv:py{37,38,39,310}-dj{32,40,41,main}-postgis]
[testenv:py{37,38,39,310,311}-dj{32,40,41,main}-postgis]
setenv =
{[testenv]setenv}
DB_BACKEND = postgis
DB_PORT = {env:DB_PORT:5432}

[testenv:py{37,38,39,310}-dj{32,40,41,main}-mysql]
[testenv:py{37,38,39,310,311}-dj{32,40,41,main}-mysql]
setenv =
{[testenv]setenv}
DB_BACKEND = mysql
DB_PORT = {env:DB_PORT:3306}

[testenv:py{37,38,39,310}-dj{32,40,41,main}-sqlite]
[testenv:py{37,38,39,310,311}-dj{32,40,41,main}-sqlite]
setenv =
{[testenv]setenv}
DB_BACKEND = sqlite3
Expand Down Expand Up @@ -90,6 +91,7 @@ python =
3.8: py38
3.9: py39
3.10: py310
3.11: py311

[gh-actions:env]
DB_BACKEND =
Expand Down

0 comments on commit c5226e7

Please sign in to comment.