From 8b6d390a1da697e07fc77a71ffc87afdc824424d Mon Sep 17 00:00:00 2001 From: edX requirements bot Date: Fri, 23 Feb 2024 07:37:39 -0500 Subject: [PATCH] feat: add python 3.12 support --- .github/workflows/ci.yml | 54 +++++++++++++++++++--------------------- tox.ini | 3 +-- 2 files changed, 26 insertions(+), 31 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index db43c3b..59e217f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -5,7 +5,7 @@ on: branches: [master] pull_request: branches: - - "**" + - "**" jobs: run_tests: @@ -14,37 +14,33 @@ jobs: strategy: matrix: os: [ubuntu-20.04] - python-version: ["3.8"] - toxenv: - [ - django32-celery53-drflatest, - django42-celery53-drflatest, - quality, - docs, - pii_check, - ] + python-version: + - "3.8" + - '3.12' + toxenv: [django32-celery53-drflatest, django42-celery53-drflatest, quality, + docs, pii_check, django42] steps: - - uses: actions/checkout@v2 - - name: setup python - uses: actions/setup-python@v2 - with: - python-version: ${{ matrix.python-version }} + - uses: actions/checkout@v2 + - name: setup python + uses: actions/setup-python@v2 + with: + python-version: ${{ matrix.python-version }} - - name: Install pip - run: pip install -r requirements/pip.txt + - name: Install pip + run: pip install -r requirements/pip.txt - - name: Install Dependencies - run: pip install -r requirements/ci.txt + - name: Install Dependencies + run: pip install -r requirements/ci.txt - - name: Run Tests - env: - TOXENV: ${{ matrix.toxenv }} - run: tox + - name: Run Tests + env: + TOXENV: ${{ matrix.toxenv }} + run: tox - - name: Run Coverage - if: matrix.python-version == '3.8' && matrix.toxenv=='django42-celery53-drflatest' - uses: codecov/codecov-action@v3 - with: - flags: unittests - fail_ci_if_error: true + - name: Run Coverage + if: matrix.python-version == '3.8' && matrix.toxenv=='django42-celery53-drflatest' + uses: codecov/codecov-action@v3 + with: + flags: unittests + fail_ci_if_error: true diff --git a/tox.ini b/tox.ini index ffdbc4d..409937b 100644 --- a/tox.ini +++ b/tox.ini @@ -1,9 +1,8 @@ [tox] -envlist = py38-django{32,42}-celery{44,50}-drf{latest} +envlist = py{38, 312}-django{42}-celery{44,50}-drf{latest} [testenv] deps = - django32: Django>=3.2,<4.0 django42: Django>=4.2,<4.3 drflatest: djangorestframework celery53: -r{toxinidir}/requirements/celery53.txt