From e4e679ad91416d94108749ddecf8129aba767cd3 Mon Sep 17 00:00:00 2001 From: edX requirements bot Date: Fri, 23 Feb 2024 07:37:32 -0500 Subject: [PATCH] feat: add python 3.12 support --- .github/workflows/ci.yml | 11 +++++------ tox.ini | 16 ++++++++-------- 2 files changed, 13 insertions(+), 14 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c739620e..6526d2aa 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -3,10 +3,10 @@ name: Python CI on: push: branches: - - master + - master pull_request: branches: - - '**' + - '**' jobs: run_tests: @@ -15,10 +15,9 @@ jobs: strategy: matrix: os: - - ubuntu-20.04 - python-version: - - 3.8 - toxenv: [ formatting,quality,python ] + - ubuntu-20.04 + python-version: [3.8, '3.8', '3.12'] + toxenv: [formatting, quality, python, django42] steps: - uses: actions/checkout@v2 - name: setup python diff --git a/tox.ini b/tox.ini index 8a81cbfd..26e3b998 100644 --- a/tox.ini +++ b/tox.ini @@ -1,5 +1,5 @@ [tox] -envlist = py38, quality, formatting +envlist = py{38, 312} quality, formatting [testenv:quality] basepython = python @@ -12,13 +12,13 @@ deps = black commands = black --check --diff --line-length 120 src tests setup.py [testenv] -setenv = - PYTHONPATH = {toxinidir} -deps = - -r{toxinidir}/requirements/test.txt -commands = - pip install -U pip - pytest --basetemp={envtmpdir} --cov cc2olx --cov-report term-missing --cov-report xml +setenv = + PYTHONPATH = {toxinidir} +deps = + -r{toxinidir}/requirements/test.txt +commands = + pip install -U pip + pytest --basetemp={envtmpdir} --cov cc2olx --cov-report term-missing --cov-report xml [testenv:python]