Skip to content

Commit

Permalink
Update CI tests
Browse files Browse the repository at this point in the history
  • Loading branch information
tm-kn committed May 14, 2024
1 parent 03bed34 commit 2d24592
Show file tree
Hide file tree
Showing 3 changed files with 95 additions and 63 deletions.
134 changes: 81 additions & 53 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- name: Set up Python 3
uses: actions/setup-python@v2
uses: actions/setup-python@v5
with:
python-version: 3

Expand All @@ -32,8 +32,8 @@ jobs:
continue-on-error: ${{ matrix.experimental }}
strategy:
matrix:
python-version: [3.5, 3.6, 3.7, 3.8, 3.9, "3.10"]
django-version: [18, 19, 110, 111, 20, 21, 22, 30, 31, 32, 40, 50, main]
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12"]
django-version: [18, 19, 110, 111, 20, 21, 22, 30, 31, 32, 40, 41, 42, 50, main]
experimental: [false]

# Allow failures on Django main branch test.
Expand All @@ -43,69 +43,45 @@ jobs:
experimental: true

exclude:
# Python 3.5
- python-version: 3.5
django-version: 30
- python-version: 3.5
django-version: 31
- python-version: 3.5
django-version: 32
- python-version: 3.5
django-version: 40
- python-version: 3.5
django-version: 50
- python-version: 3.5
django-version: main

# Python 3.6
- python-version: 3.6
django-version: 18
- python-version: 3.6
django-version: 19
- python-version: 3.6
django-version: 110
- python-version: 3.6
django-version: 40
- python-version: 3.6
django-version: 50
- python-version: 3.6
django-version: main

# Python 3.7
- python-version: 3.7
- python-version: "3.7"
django-version: 18
- python-version: 3.7
- python-version: "3.7"
django-version: 19
- python-version: 3.7
- python-version: "3.7"
django-version: 110
- python-version: 3.7
- python-version: "3.7"
django-version: 111
- python-version: 3.7
- python-version: "3.7"
django-version: 40
- python-version: 3.7
- python-version: "3.7"
django-version: 41
- python-version: "3.7"
django-version: 42
- python-version: "3.7"
django-version: 50
- python-version: 3.7
- python-version: "3.7"
django-version: main


# Python 3.8
- python-version: 3.8
- python-version: "3.8"
django-version: 18
- python-version: 3.8
- python-version: "3.8"
django-version: 19
- python-version: 3.8
- python-version: "3.8"
django-version: 110
- python-version: 3.8
- python-version: "3.8"
django-version: 111
- python-version: 3.8
- python-version: "3.8"
django-version: 111
- python-version: 3.8
- python-version: "3.8"
django-version: 20
- python-version: 3.8
- python-version: "3.8"
django-version: 21
- python-version: 3.8
- python-version: "3.8"
django-version: 50
- python-version: 3.8
- python-version: "3.8"
django-version: main

# Python 3.9
Expand Down Expand Up @@ -151,8 +127,60 @@ jobs:
django-version: 30
- python-version: "3.10"
django-version: 31
- python-version: "3.10"
django-version: main

# Python 3.11
- python-version: "3.11"
django-version: 18
- python-version: "3.11"
django-version: 19
- python-version: "3.11"
django-version: 110
- python-version: "3.11"
django-version: 111
- python-version: "3.11"
django-version: 111
- python-version: "3.11"
django-version: 20
- python-version: "3.11"
django-version: 21
- python-version: "3.11"
django-version: 21
- python-version: "3.11"
django-version: 22
- python-version: "3.11"
django-version: 30
- python-version: "3.11"
django-version: 31
- python-version: "3.11"
django-version: 40

# Python 3.12
- python-version: "3.12"
django-version: 18
- python-version: "3.12"
django-version: 19
- python-version: "3.12"
django-version: 110
- python-version: "3.12"
django-version: 111
- python-version: "3.12"
django-version: 111
- python-version: "3.12"
django-version: 20
- python-version: "3.12"
django-version: 21
- python-version: "3.12"
django-version: 21
- python-version: "3.12"
django-version: 22
- python-version: "3.12"
django-version: 30
- python-version: "3.12"
django-version: 31
- python-version: "3.12"
django-version: 40
- python-version: "3.12"
django-version: 41


runs-on: ubuntu-latest
Expand All @@ -161,7 +189,7 @@ jobs:
- uses: actions/checkout@v2

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}

Expand All @@ -180,10 +208,10 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- name: Set up Python 3
uses: actions/setup-python@v2
uses: actions/setup-python@v5
with:
python-version: 3

Expand Down
13 changes: 9 additions & 4 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,11 @@ classifiers =
Programming Language :: Python :: 3.5
Programming Language :: Python :: 3.6
Programming Language :: Python :: 3.7
Programming Language :: Python :: 3.8
Programming Language :: Python :: 3.9
Programming Language :: Python :: 3.10
Programming Language :: Python :: 3.11
Programming Language :: Python :: 3.12
Topic :: Internet :: WWW/HTTP
Framework :: Django
Framework :: Django :: 1.8
Expand Down Expand Up @@ -44,14 +49,14 @@ keywords =
[options]
packages = find:
install_requires =
Django>=1.8,<6
Django>=1.8
python_requires = >=3.4

[options.extras_require]
lint =
isort==5.7.0
flake8==3.8.4
black==20.8b1
isort==5.13.2
flake8==7.0.0
black==24.4.2

[options.packages.find]
exclude =
Expand Down
11 changes: 5 additions & 6 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,16 @@ envlist =
py{35,36,37}-dj{20}
py{35,36,37}-dj{21}
py{35,36,37,38}-dj{22}
py{36,37,38,39}-dj{30,32,main}
py{38,39,310}-dj{32,40,main}
py{310}-dj{50,main}
py{36,37,38,39}-dj{30,32}
py{38,39,310}-dj{32,40}
py{310}-dj{32,40,41,42,50,main}
py{311}-dj{41,42,50,main}
py{312}-dj{42,50,main}
flake8
isort

[testenv]
deps =
# Use the old pip to avoid issues with the new resolver.
pip<20.3
dj18: Django>=1.8,<1.9
dj19: Django>=1.9,<1.10
dj110: Django>=1.10,<1.11
Expand All @@ -28,7 +28,6 @@ deps =
dj40: Django>=4,<4.1
dj50: Django>=5,<5.1
djmain: https://github.com/django/django/archive/main.tar.gz
install_command = pip install -e . -U {opts} {packages}
commands =
python run_tests.py

Expand Down

0 comments on commit 2d24592

Please sign in to comment.