Skip to content

Commit

Permalink
feat: add python312 support
Browse files Browse the repository at this point in the history
  • Loading branch information
UsamaSadiq committed Feb 26, 2024
1 parent e272aa4 commit adefd61
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 15 deletions.
25 changes: 13 additions & 12 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,17 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
tox-env: [django32, quality]
python-version: ['3.8', '3.12']
tox-env: [quality, django42]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
with:
python-version: '3.8'
architecture: x64
- name: Install requirements
run: pip install -r requirements/ci.txt
- name: Run tox
env:
TOXENV: ${{ matrix.tox-env }}
run: tox
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
with:
python-version: matrix.python-version
architecture: x64
- name: Install requirements
run: pip install -r requirements/ci.txt
- name: Run tox
env:
TOXENV: ${{ matrix.tox-env }}
run: tox
5 changes: 2 additions & 3 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[tox]
envlist = py38-django{32,40}, quality
envlist = py{38, 312}-django{42}, quality

[doc8]
; D001 = Line too long
Expand Down Expand Up @@ -36,8 +36,7 @@ norecursedirs = .* requirements site-packages

[testenv]
deps =
django32: Django>=3.2,<4.0
django40: Django>=4.0,<4.1
django42: Django>=4.2,<4.3
-r{toxinidir}/requirements/test.txt
commands =
pytest {posargs}
Expand Down

0 comments on commit adefd61

Please sign in to comment.