From 63ccceab7d642fea7f99ee81b8a767cb9ee3690e Mon Sep 17 00:00:00 2001 From: edX requirements bot Date: Fri, 23 Feb 2024 04:26:46 -0500 Subject: [PATCH] feat: add python312 support --- .github/workflows/ci.yml | 14 +++++++------- tox.ini | 3 ++- 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a009cb26..8abcbd31 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 - targets: [ 'quality','main.test','docs' ] + - ubuntu-20.04 + python-version: [3.8, '3.8', '3.12'] + targets: ['quality', 'main.test', 'docs'] steps: - uses: actions/checkout@v3 @@ -37,7 +36,8 @@ jobs: - name: Run Tests run: docker exec -t analytics_api_testing bash -c "cd /edx/app/analytics_api/analytics_api/ - && export TOXENV=django42 && make test.requirements tox.requirements ${{ matrix.targets }}" + && export TOXENV=django42 && make test.requirements tox.requirements ${{ matrix.targets + }}" - name: Run Coverage if: matrix.python-version == '3.8' && matrix.targets=='main.test' diff --git a/tox.ini b/tox.ini index d188d1d4..5537e089 100644 --- a/tox.ini +++ b/tox.ini @@ -1,6 +1,6 @@ [tox] skipsdist = True -envlist = py38-django{42} +envlist = py{38, 312}-django{42} [testenv] passenv = @@ -27,3 +27,4 @@ setenv = commands = make -e -C docs/api clean make -e -C docs/api html +