2014-11-21 13:15:42 +00:00
|
|
|
[tox]
|
2024-07-03 08:30:29 +00:00
|
|
|
isolated_build = true
|
2014-11-21 15:56:06 +00:00
|
|
|
envlist =
|
2024-08-23 19:13:54 +00:00
|
|
|
py{38,39,310,311,312}-dj{42}-{unittest,pytest,checkmigrations}
|
2025-10-21 07:58:47 +00:00
|
|
|
py{310,311,312}-dj{50}-{unittest,pytest,checkmigrations}
|
|
|
|
|
py{310,311,312,313}-dj{51}-{unittest,pytest,checkmigrations}
|
2025-10-21 07:56:59 +00:00
|
|
|
py{310,311,312,313,314}-dj{52}-{unittest,pytest,checkmigrations}
|
2025-10-21 07:58:47 +00:00
|
|
|
py{312,313,314}-dj{main}-{unittest,pytest,checkmigrations}
|
2024-07-03 08:30:29 +00:00
|
|
|
skip_missing_interpreters = True
|
2023-03-11 14:58:13 +00:00
|
|
|
|
2014-11-21 13:15:42 +00:00
|
|
|
[testenv]
|
|
|
|
|
deps =
|
2014-11-21 13:48:52 +00:00
|
|
|
redis
|
|
|
|
|
coverage
|
2024-06-11 12:46:29 +00:00
|
|
|
dj42: django>=4.2,<4.3
|
|
|
|
|
dj50: django>=5.0,<5.1
|
|
|
|
|
dj51: django>=5.1,<5.2
|
2025-05-19 19:20:14 +00:00
|
|
|
dj52: django>=5.2,<5.3
|
2021-03-09 12:12:55 +00:00
|
|
|
djmain: https://github.com/django/django/archive/main.tar.gz
|
2020-04-04 16:38:22 +00:00
|
|
|
pytest: pytest
|
|
|
|
|
pytest: pytest-cov
|
|
|
|
|
pytest: pytest-django
|
2017-06-02 01:05:59 +00:00
|
|
|
usedevelop = True
|
|
|
|
|
ignore_outcome =
|
2021-03-09 12:12:55 +00:00
|
|
|
djmain: True
|
2014-11-21 13:15:42 +00:00
|
|
|
commands =
|
2020-04-04 16:38:22 +00:00
|
|
|
unittest: coverage run {envbindir}/django-admin test -v2
|
|
|
|
|
unittest: coverage report
|
2020-11-27 14:29:12 +00:00
|
|
|
unittest: coverage xml
|
|
|
|
|
pytest: pytest --cov=. --ignore=.tox --disable-pytest-warnings --cov-report=xml --cov-append {toxinidir}
|
2024-08-23 19:13:54 +00:00
|
|
|
checkmigrations: django-admin makemigrations --check --dry-run
|
2015-09-24 09:56:19 +00:00
|
|
|
setenv =
|
2024-07-03 08:30:29 +00:00
|
|
|
PYTHONPATH = {toxinidir}
|
|
|
|
|
PYTHONDONTWRITEBYTECODE = 1
|
|
|
|
|
DJANGO_SETTINGS_MODULE = tests.settings
|
2020-11-27 14:29:12 +00:00
|
|
|
|
|
|
|
|
[gh-actions]
|
|
|
|
|
python =
|
|
|
|
|
3.8: py38
|
|
|
|
|
3.9: py39
|
2021-10-21 18:56:14 +00:00
|
|
|
3.10: py310
|
2023-03-11 14:58:13 +00:00
|
|
|
3.11: py311
|
2024-06-11 12:46:29 +00:00
|
|
|
3.12: py312
|
2024-12-09 07:43:06 +00:00
|
|
|
3.13: py313
|
2025-10-21 07:56:59 +00:00
|
|
|
3.14: py314
|