From d4580ddc3794e32a94dc75db465d2ebf865f8171 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luk=C3=A1=C5=A1=20Zaoral?= Date: Tue, 5 Dec 2023 10:20:39 +0100 Subject: [PATCH] ci: add Python 3.12 jobs According to the documentation, only Django 4.2 and newer support this release of Python officially. Related: https://docs.djangoproject.com/en/4.2/faq/install/#what-python-version-can-i-use-with-django --- .github/workflows/main.yml | 1 + tox.ini | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 19830320..e70d7dbf 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -39,6 +39,7 @@ jobs: py39-django4, py310-django4, py311-django4, + py312-django4, py39-bandit, ] diff --git a/tox.ini b/tox.ini index 3aa8583c..39bae72d 100644 --- a/tox.ini +++ b/tox.ini @@ -1,6 +1,6 @@ [tox] # Don't forget to update GA config when changing this -envlist = {py36, py38, py39, py310, py311}-{django2, django3}, {py38, py39, py310, py311}-django4, py39-bandit +envlist = {py36, py38, py39, py310, py311}-{django2, django3}, {py38, py39, py310, py311}-django4, py312-django4, py39-bandit skip_missing_interpreters = True [testenv] @@ -10,7 +10,7 @@ deps = -rtest-requirements.txt django2: Django~=2.2.0 # Django 2 LTS (EOL 4/2022) django3: Django~=3.2.0 # Django 3 LTS (EOL 4/2024) - django4: Django~=4.2.0 + django4: Django~=4.2.0 # Django 4 LTS (EOL 4/2026) # for testing with python-rpm sitepackages = True