Skip to content

Commit

Permalink
build: ading python 311 and 312 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 da47f0e commit a3a5058
Show file tree
Hide file tree
Showing 2 changed files with 9 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
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 a3a5058

Please sign in to comment.