Skip to content

Commit

Permalink
feat: add python 3.12 support
Browse files Browse the repository at this point in the history
  • Loading branch information
edx-requirements-bot committed Feb 23, 2024
1 parent 32fc785 commit 8b6d390
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 31 deletions.
54 changes: 25 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,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
3 changes: 1 addition & 2 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 8b6d390

Please sign in to comment.