Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,10 @@ jobs:
strategy:
matrix:
os: [ubuntu-20.04]
python-version: ['3.8']
toxenv: [py38-django32, py38-django40, quality]
python-version:
- '3.8'
- '3.12'
toxenv: [py38-django32, py38-django40, quality, django42]

steps:
- uses: actions/checkout@v3
Expand Down
24 changes: 11 additions & 13 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
[tox]
envlist = py38-django{32,40}, quality
envlist = py{38, 312}-django{42}, quality

[pycodestyle]
exclude = .git,.tox,migrations
max-line-length = 120

[isort]
line_length = 120
known_edx =
known_edx =
known_django = django
known_djangoapp = model_utils
known_first_party = taxonomy
Expand All @@ -16,36 +16,34 @@ multi_line_output = 3
sections = FUTURE,STDLIB,THIRDPARTY,DJANGO,DJANGOAPP,EDX,FIRSTPARTY,LOCALFOLDER

[pytest]
DJANGO_SETTINGS_MODULE = test_settings
django_settings_module = test_settings
addopts = --cov skill_tagging --cov-report term-missing --cov-report xml
norecursedirs = .* docs requirements site-packages

[testenv]
whitelist_externals =
whitelist_externals =
make

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 =
make test


[testenv:quality]
whitelist_externals =
whitelist_externals =
make
rm
touch
pylint
pycodestyle
isort
deps =
deps =
-r{toxinidir}/requirements/quality.txt
commands =
commands =
touch tests/__init__.py
pylint skill_tagging tests
rm tests/__init__.py
pycodestyle skill_tagging tests
isort --check-only --diff tests skill_tagging test_settings.py
make selfcheck