From fd0743250cdb0af8a866826b392affe2a8e1c095 Mon Sep 17 00:00:00 2001 From: edX requirements bot Date: Fri, 23 Feb 2024 07:37:46 -0500 Subject: [PATCH] feat: add python 3.12 support --- .github/workflows/ci.yml | 27 +++++++++++++-------------- tox.ini | 17 +++++++++-------- 2 files changed, 22 insertions(+), 22 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c5802fe..a849bc2 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,18 +15,17 @@ jobs: strategy: matrix: os: - - ubuntu-20.04 - python-version: - - 3.8 + - ubuntu-20.04 + python-version: [3.8, '3.8', '3.12'] 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 dependencies - run: pip install -r requirements/ci.txt + - name: Install dependencies + run: pip install -r requirements/ci.txt - - name: Run Tests - run: tox + - name: Run Tests + run: tox diff --git a/tox.ini b/tox.ini index f5d0190..5dda256 100644 --- a/tox.ini +++ b/tox.ini @@ -1,10 +1,10 @@ [tox] -envlist = py38-django{22,30,31},quality +envlist = py{38, 312}-django{42},quality [ci] python = - 3.8: py38 - quality: flake8 + 3.8: py38 + quality: flake8 [testenv:quality] basepython = python @@ -13,10 +13,11 @@ commands = flake8 user_util [testenv] setenv = - PYTHONPATH = {toxinidir} + PYTHONPATH = {toxinidir} deps = - -r requirements/test.txt + -r requirements/test.txt commands = - pip install -U pip - python setup.py develop - py.test --basetemp={envtmpdir} + pip install -U pip + python setup.py develop + py.test --basetemp={envtmpdir} +