Remove Django 4.1 (EOL) and add Django 5.0 to CI (#1483)

This commit is contained in:
Kien Dang 2023-12-14 15:20:54 +07:00 committed by GitHub
parent 62126dd467
commit db2d40ec94
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 14 additions and 12 deletions

View File

@ -12,15 +12,17 @@ jobs:
strategy: strategy:
max-parallel: 4 max-parallel: 4
matrix: matrix:
django: ["3.2", "4.1", "4.2"] django: ["3.2", "4.2", "5.0"]
python-version: ["3.8", "3.9", "3.10"] python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
include: exclude:
- django: "4.1" - django: "3.2"
python-version: "3.11" python-version: "3.11"
- django: "4.2" - django: "3.2"
python-version: "3.11"
- django: "4.2"
python-version: "3.12" python-version: "3.12"
- django: "5.0"
python-version: "3.8"
- django: "5.0"
python-version: "3.9"
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }} - name: Set up Python ${{ matrix.python-version }}

10
tox.ini
View File

@ -1,9 +1,9 @@
[tox] [tox]
envlist = envlist =
py{38,39,310}-django32 py{38,39,310}-django32
py{38,39}-django{41,42} py{38,39}-django42
py{310,311}-django{41,42,main} py{310,311}-django{42,50,main}
py312-django{42,main} py312-django{42,50,main}
pre-commit pre-commit
[gh-actions] [gh-actions]
@ -17,8 +17,8 @@ python =
[gh-actions:env] [gh-actions:env]
DJANGO = DJANGO =
3.2: django32 3.2: django32
4.1: django41
4.2: django42 4.2: django42
5.0: django50
main: djangomain main: djangomain
[testenv] [testenv]
@ -31,8 +31,8 @@ deps =
-e.[test] -e.[test]
psycopg2-binary psycopg2-binary
django32: Django>=3.2,<4.0 django32: Django>=3.2,<4.0
django41: Django>=4.1,<4.2
django42: Django>=4.2,<4.3 django42: Django>=4.2,<4.3
django50: Django>=5.0,<5.1
djangomain: https://github.com/django/django/archive/main.zip djangomain: https://github.com/django/django/archive/main.zip
commands = {posargs:pytest --cov=graphene_django graphene_django examples} commands = {posargs:pytest --cov=graphene_django graphene_django examples}