Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed #1693 -- Run tests on python 3.11 #1694

Merged
merged 1 commit into from Oct 25, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/test.yml
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
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