django-constance/tox.ini
Jannis Leidel a16cca3e8f
Rename Django's dev branch to main. (#445)
* Rename Django's dev branch to main.

More information: https://groups.google.com/g/django-developers/c/tctDuKUGosc/
Refs: https://github.com/django/django/pull/14048

* Don't run tests against Django main on Python < 3.8.
2021-03-09 13:12:55 +01:00

40 lines
962 B
INI

[tox]
envlist =
py{36,37,38,39,py3}-dj{22}-unittest
py{36,37,py3}-dj{30,31}-unittest
py{36,37,py3}-dj{22,30,31}-pytest
py{38,39}-dj{30,31,main}-unittest
py{38,39}-dj{22,30,31,main}-pytest
[testenv]
deps =
redis
coverage
mock
django-picklefield
dj22: Django>=2.2,<3.0
dj30: Django>=3.0,<3.1
dj31: Django>=3.1,<3.2
djmain: https://github.com/django/django/archive/main.tar.gz
pytest: pytest
pytest: pytest-cov
pytest: pytest-django
usedevelop = True
ignore_outcome =
djmain: True
commands =
unittest: coverage run {envbindir}/django-admin test -v2
unittest: coverage report
unittest: coverage xml
pytest: pytest --cov=. --ignore=.tox --disable-pytest-warnings --cov-report=xml --cov-append {toxinidir}
setenv =
PYTHONDONTWRITEBYTECODE=1
DJANGO_SETTINGS_MODULE=tests.settings
[gh-actions]
python =
3.6: py36
3.7: py37
3.8: py38
3.9: py39
pypy3: pypy3