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 610c3b1 commit 5b0aafd
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 18 deletions.
11 changes: 5 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,11 @@ jobs:
strategy:
matrix:
os: [ubuntu-20.04]
python-version: ['3.8']
toxenv: [
django32-celery53-drf313, django32-celery53-drflatest,
django42-celery53-drflatest,
quality, docs
]
python-version:
- '3.8'
- '3.12'
toxenv: [django32-celery53-drf313, django32-celery53-drflatest, django42-celery53-drflatest,
quality, docs, django42]

steps:
- uses: actions/checkout@v4
Expand Down
22 changes: 10 additions & 12 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,26 +1,24 @@
[tox]
envlist =
py38-django{32,42}-celery{53}-drf{313,latest}
quality
envlist =
py{38, 312}-django{42}quality
docs

[testenv]
deps =
django32: Django>=3.2,<4.0
deps =
django42: Django>=4.2,<4.3
drf313: djangorestframework>=3.13,<3.14
drflatest: djangorestframework
-r{toxinidir}/requirements/test.txt
commands =
commands =
python -Wd -m pytest --cov user_tasks {posargs}

[testenv:docs]
allowlist_externals =
allowlist_externals =
make
rm
deps =
deps =
-r{toxinidir}/requirements/doc.txt
commands =
commands =
doc8 --ignore-path docs/_build --ignore-path docs/rest_api.rst README.rst docs
rm -f docs/user_tasks.rst
rm -f docs/modules.rst
Expand All @@ -30,15 +28,15 @@ commands =
twine check dist/*

[testenv:quality]
allowlist_externals =
allowlist_externals =
make
rm
touch
deps =
deps =
-r{toxinidir}/requirements/doc.txt
-r{toxinidir}/requirements/quality.txt
-r{toxinidir}/requirements/test.txt
commands =
commands =
touch tests/__init__.py
pylint user_tasks
pylint tests
Expand Down

0 comments on commit 5b0aafd

Please sign in to comment.