django-configurations/tox.ini

53 lines
1.1 KiB
INI
Raw Normal View History

[tox]
skipsdist = true
usedevelop = true
minversion = 1.8
whitelist_externals = sphinx-build
envlist =
py36-checkqa
py{36,37,py3}-dj{22,31,32}
py{38,39}-dj{22,31,32,40,main}
py{310}-dj{40,main}
2020-11-26 15:18:58 +00:00
[gh-actions]
2019-12-03 10:51:21 +00:00
python =
3.6: py36,flake8,readme
3.7: py37
2019-12-03 10:55:03 +00:00
3.8: py38
2021-01-18 09:58:23 +00:00
3.9: py39
3.10: py310
2019-12-03 10:51:21 +00:00
pypy3: pypy3
[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 =
2021-01-18 09:58:23 +00:00
dj22: django~=2.2.17
dj31: django~=3.1.3
dj32: django~=3.2.0
dj40: django>=4.0b1,<4.1
djmain: https://github.com/django/django/archive/main.tar.gz
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
coverage report -m --skip-covered
coverage xml
2019-12-03 11:42:36 +00:00
[testenv:py36-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