From fab08bb295042adebf7531f5ee40fad9ce0e3275 Mon Sep 17 00:00:00 2001 From: edX requirements bot Date: Fri, 23 Feb 2024 07:37:36 -0500 Subject: [PATCH] feat: add python 3.12 support --- .github/workflows/ci.yml | 37 ++++++++++++++++++------------------- tox.ini | 6 +++--- 2 files changed, 21 insertions(+), 22 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 86b8052..f13b93c 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,23 +15,22 @@ jobs: strategy: matrix: os: - - ubuntu-20.04 - python-version: - - 3.8 - toxenv: [py38] + - ubuntu-20.04 + python-version: [3.8, '3.8', '3.12'] + toxenv: [py38, django42] steps: - - uses: actions/checkout@v1 - - name: setup python - uses: actions/setup-python@v2 - with: - python-version: ${{ matrix.python-version }} + - uses: actions/checkout@v1 + - name: setup python + uses: actions/setup-python@v2 + with: + python-version: ${{ matrix.python-version }} - - name: Install dependencies - run: | - pip install --upgrade pip - pip install -r test_requirements.txt + - name: Install dependencies + run: | + pip install --upgrade pip + pip install -r test_requirements.txt - - name: Run Tests - env: - TOXENV: ${{ matrix.toxenv }} - run: tox + - name: Run Tests + env: + TOXENV: ${{ matrix.toxenv }} + run: tox diff --git a/tox.ini b/tox.ini index 192ccc4..37090c5 100644 --- a/tox.ini +++ b/tox.ini @@ -1,10 +1,10 @@ [tox] envlist = py38 - [testenv] -deps = +deps = -r{toxinidir}/requirements.txt -r{toxinidir}/github_requirements.txt -commands = +commands = py.test {posargs} +