Skip to content

Commit

Permalink
build: add python 311 support
Browse files Browse the repository at this point in the history
  • Loading branch information
awais786 authored and mumarkhan999 committed Apr 2, 2024
1 parent 01f16ac commit fa9de2d
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 12 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ jobs:
strategy:
matrix:
os: [ubuntu-20.04]
python-version: ['3.8']
toxenv: [django32, django42, quality]
python-version: ['3.8', '3.11']
toxenv: [django42, quality]

steps:
- uses: actions/checkout@v2
Expand Down Expand Up @@ -62,7 +62,7 @@ jobs:

- name: Install Dependencies
run: |
pip install "Django<4.0"
pip install "~Django==4.2"
pip install -r requirements/ci.txt
pip install -r requirements/test.txt
Expand Down
3 changes: 3 additions & 0 deletions requirements/constraints.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,6 @@

# Common constraints for edx repos
-c common_constraints.txt

# For python greater than or equal to 3.9 backports.zoneinfo is causing failures
backports.zoneinfo;python_version<"3.9"
15 changes: 6 additions & 9 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,27 +1,24 @@
[tox]
envlist = py38-django{32,42}, quality
envlist = py{38,311}-django{42}, quality

[testenv]
deps =
django32: Django>=3.2,<4.0
django40: Django>=4.0,<4.1
deps =
django42: Django>=4.2,<4.3
-r{toxinidir}/requirements/test.txt
commands =
commands =
python -Wd -m pytest {posargs}

[testenv:quality]
basepython = python3.8
allowlist_externals =
allowlist_externals =
make
deps =
deps =
-r{toxinidir}/requirements/quality.txt
commands =
commands =
pylint edxval
pycodestyle edxval
pydocstyle edxval
isort --check-only edxval manage.py setup.py
make selfcheck
python setup.py sdist bdist_wheel
twine check dist/*

0 comments on commit fa9de2d

Please sign in to comment.