Skip to content

Commit

Permalink
feat: add python312 support
Browse files Browse the repository at this point in the history
  • Loading branch information
edx-requirements-bot authored and UsamaSadiq committed Mar 21, 2024
1 parent 975d364 commit 3d345ee
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 31 deletions.
51 changes: 22 additions & 29 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
branches: [master]
pull_request:
branches:
- "**"
- "**"

jobs:
run_tests:
Expand All @@ -14,37 +14,30 @@ jobs:
strategy:
matrix:
os: [ubuntu-20.04]
python-version: ["3.8"]
toxenv:
[
quality,
docs,
pii_check,
django32-celery53,
django42-celery53,
]
python-version: ['3.8', '3.12']
toxenv: [quality, docs, pii_check, django42-celery53]

steps:
- uses: actions/checkout@v2
- name: setup python
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- uses: actions/checkout@v4
- name: setup python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}

- name: Upgrade pip
run: pip install -r requirements/pip.txt
- name: Upgrade 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'
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'
uses: codecov/codecov-action@v3
with:
flags: unittests
fail_ci_if_error: true
3 changes: 1 addition & 2 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[tox]
envlist = py38-django{32,42}-celery{53},quality,docs,pii_check
envlist = py{38, 312}-django{42}-celery{53},quality,docs,pii_check

[pytest]
DJANGO_SETTINGS_MODULE = test_settings
Expand All @@ -11,7 +11,6 @@ setenv =
PYTHONPATH = {toxinidir}/mock_apps/
deps =
-r{toxinidir}/requirements/test.txt
django32: Django>=3.2,<4.0
django42: Django>=4.2,<4.3
celery53: -r{toxinidir}/requirements/celery53.txt
commands =
Expand Down

0 comments on commit 3d345ee

Please sign in to comment.