From 4d2386960d64661c2a7cab9ac28238d0c267bc64 Mon Sep 17 00:00:00 2001 From: edX requirements bot Date: Fri, 23 Feb 2024 07:37:34 -0500 Subject: [PATCH] feat: add python 3.12 support --- .github/workflows/ci.yml | 8 ++++---- tox.ini | 5 ++--- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3007fb4..de33e40 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -14,10 +14,10 @@ jobs: strategy: matrix: os: [ubuntu-20.04] - python-version: ['3.8'] - toxenv: [ - quality, docs, django32-drf314, django42-drf314 - ] + python-version: + - '3.8' + - '3.12' + toxenv: [quality, docs, django32-drf314, django42-drf314, django42] steps: - uses: actions/checkout@v2 diff --git a/tox.ini b/tox.ini index cde9012..a669fd1 100644 --- a/tox.ini +++ b/tox.ini @@ -1,15 +1,14 @@ [tox] -envlist = py38-django{32,42}-drf{312, drf314}, quality, docs +envlist = py{38, 312}-django{42}-drf{312, drf314}, quality, docs [testenv] setenv = DJANGO_SETTINGS_MODULE = settings deps = -r{toxinidir}/requirements/test.txt - django32: Django>=3.2,<4.0 django42: Django>=4.2,<4.3 drf314: djangorestframework<3.15.0 -commands = +commands = python -Wd -m pytest {posargs} [testenv:quality]