django-configurations/tox.ini

73 lines
1.4 KiB
INI
Raw Permalink Normal View History

[tox]
skipsdist = true
usedevelop = true
minversion = 1.8
envlist =
py311-checkqa
docs
py{39}-dj{32,41,42}
py{310,py310}-dj{32,41,42,50,main}
py{311}-dj{41,42,50,51,main}
py{312}-dj{50,51,main}
py{313}-dj{50,51,main}
2020-11-26 15:18:58 +00:00
[gh-actions]
2019-12-03 10:51:21 +00:00
python =
2021-01-18 09:58:23 +00:00
3.9: py39
3.10: py310
3.11: py311,flake8,readme
3.12: py312
3.13: py313
2023-09-22 15:55:59 +00:00
pypy-3.10: pypy310
2019-12-03 10:51:21 +00:00
[testenv]
2014-12-12 16:26:21 +00:00
usedevelop = true
setenv =
DJANGO_SETTINGS_MODULE = tests.settings.main
DJANGO_CONFIGURATION = Test
COVERAGE_PROCESS_START = {toxinidir}/setup.cfg
deps =
dj32: django~=3.2.9
2022-11-04 11:00:47 +00:00
dj41: django~=4.1.3
dj42: django~=4.2.0
dj50: django~=5.0.0
dj51: django~=5.1.0
djmain: https://github.com/django/django/archive/main.tar.gz
py312: setuptools
py312: wheel
py313: setuptools
py313: wheel
2019-12-03 10:51:21 +00:00
coverage
coverage_enable_subprocess
extras = testing
commands =
python --version
2019-12-03 10:51:21 +00:00
{envbindir}/coverage run {envbindir}/django-cadmin test -v2 {posargs:tests}
coverage combine . tests docs
2019-12-03 10:51:21 +00:00
coverage report -m --skip-covered
coverage xml
[testenv:py311-checkqa]
commands =
flake8 {toxinidir}
2019-12-03 11:47:25 +00:00
check-manifest -v
python setup.py sdist
twine check dist/*
deps =
flake8
twine
2019-12-03 11:47:25 +00:00
check-manifest
[testenv:docs]
setenv =
deps =
-r docs/requirements.txt
commands =
sphinx-build \
-b html \
-a \
-W \
-n \
docs \
docs/_build/html