From adefd6149b0fc1aa80e41c846c4a445c7166da7f Mon Sep 17 00:00:00 2001 From: Usama Sadiq Date: Mon, 26 Feb 2024 18:07:48 +0500 Subject: [PATCH] feat: add python312 support --- .github/workflows/ci.yml | 25 +++++++++++++------------ tox.ini | 5 ++--- 2 files changed, 15 insertions(+), 15 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index bea400c..f52fd40 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 diff --git a/tox.ini b/tox.ini index b418095..2d29123 100644 --- a/tox.ini +++ b/tox.ini @@ -1,5 +1,5 @@ [tox] -envlist = py38-django{32,40}, quality +envlist = py{38, 312}-django{42}, quality [doc8] ; D001 = Line too long @@ -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}