-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Test with multi python version - exc bandit for security - exc pre-commit hooks
- Loading branch information
1 parent
399beb1
commit cf9666d
Showing
1 changed file
with
56 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
[tox] | ||
requires = | ||
tox>=4.2 | ||
env_list = | ||
py313-django40-drf{315, 314} | ||
py313-django50-drf{315, 314} | ||
py313-django51-drf{315, 314} | ||
py312-django40-drf{315, 314} | ||
py312-django50-drf{315, 314} | ||
py312-django51-drf{315, 314} | ||
py311-django40-drf{315, 314} | ||
py311-django50-drf{315, 314} | ||
py311-django51-drf{315, 314} | ||
py310-django40-drf{315, 314} | ||
py310-django50-drf{315, 314} | ||
py310-django51-drf{315, 314} | ||
py39-django40-drf{315, 314} | ||
|
||
[testenv] | ||
description = Run Pytest tests with multiple django and drf versions | ||
deps = | ||
pytest | ||
pytest-cov | ||
pytest-django | ||
django40: django<5.0,>=4.2 | ||
django50: django<5.1,>=5 | ||
django51: django<5.2,>=5.1 | ||
drf314: djangorestframework<3.15,>=3.14 | ||
drf315: djangorestframework<3.16,>=3.15 | ||
commands = | ||
pytest --cov=django_announcement --cov-report=html | ||
develop = True | ||
|
||
[testenv:bandit] | ||
description = Run security checks | ||
skip_install = true | ||
deps = | ||
bandit | ||
commands = | ||
bandit -r django_announcement | ||
|
||
[testenv:pre-commit] | ||
description = Run pre-commit hooks | ||
skip_install = true | ||
deps = | ||
pre-commit | ||
commands = | ||
pre-commit run --all-files | ||
|
||
[gh-actions] | ||
python = | ||
3.9: py39 | ||
3.10: py310 | ||
3.11: py311 | ||
3.12: py312 | ||
3.13: py313 |