Skip to content

Commit

Permalink
Add Python3.2 and django 5.0 to test matrix
Browse files Browse the repository at this point in the history
  • Loading branch information
Tijani-Dia committed Aug 8, 2024
1 parent 55cd77f commit 21a7d0e
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 8 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:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11"]
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]

steps:
- uses: actions/checkout@v3
Expand All @@ -38,7 +38,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python: ["3.11"]
python: ["3.12"]
toxenv: ["black", "isort", "flake8"]

steps:
Expand Down Expand Up @@ -66,7 +66,7 @@ jobs:
steps:
- uses: actions/setup-python@v4
with:
python-version: "3.11"
python-version: "3.12"

- uses: actions/checkout@v3

Expand Down
14 changes: 9 additions & 5 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,21 +1,24 @@
[tox]
skipsdist = True
envlist =
envlist =
python{3.8,3.9,3.10}-django{3.2,4.0,4.1,4.2}
python3.11-django{4.1,4.2}
python3.11-django{4.1,4.2,5.0}
python3.12-django{4.2,5.0}

basepython =
python3.8: python3.8
python3.9: python3.9
python3.10: python3.10
python3.11: python3.11
python3.12: python3.12

[gh-actions]
python =
3.8: python3.8
3.9: python3.9
3.10: python3.10
3.11: python3.11
3.12: python3.12

[testenv]
install_command = pip install ".[test]" -U {opts} {packages}
Expand All @@ -26,24 +29,25 @@ deps =
django4.0: django>=4.0,<4.1
django4.1: django>=4.1,<4.2
django4.2: django>=4.2,<5.0
django5.0: django>=5.0,<5.1

[testenv:isort]
commands=isort --check-only --diff src/dj_tracker tests setup.py manage.py
basepython=python3.10
basepython=python3.12
skip_install=true
deps=
isort

[testenv:black]
commands=black --check --diff src/dj_tracker tests setup.py manage.py
basepython=python3.10
basepython=python3.12
skip_install=true
deps=
black

[testenv:flake8]
commands=flake8 src/dj_tracker tests setup.py manage.py
basepython=python3.10
basepython=python3.12
skip_install=true
deps=
flake8

0 comments on commit 21a7d0e

Please sign in to comment.