mirror of
https://github.com/jazzband/django-dbtemplates.git
synced 2026-03-16 22:20:28 +00:00
* Fixes #113 * Update tox.ini Co-authored-by: Jannis Leidel <jannis@leidel.info> Co-authored-by: Jannis Leidel <jannis@leidel.info>
53 lines
1,007 B
INI
53 lines
1,007 B
INI
[tox]
|
|
skipsdist = True
|
|
usedevelop = True
|
|
minversion = 1.8
|
|
envlist =
|
|
flake8
|
|
py{35,36}-dj111
|
|
py{35,36,37}-dj21
|
|
py{35,36,37,38,39}-dj22
|
|
py{36,37,38,39}-dj{30,31}
|
|
|
|
[gh-actions]
|
|
python =
|
|
3.5: py36
|
|
3.6: py36
|
|
3.7: py37
|
|
3.8: py38, flake8
|
|
3.9: py39
|
|
|
|
[testenv]
|
|
basepython =
|
|
py35: python3.5
|
|
py36: python3.6
|
|
py37: python3.7
|
|
py38: python3.8
|
|
py39: python3.9
|
|
usedevelop = true
|
|
setenv =
|
|
DJANGO_SETTINGS_MODULE = dbtemplates.test_settings
|
|
deps =
|
|
-r requirements/tests.txt
|
|
dj111: Django<2.0
|
|
dj20: Django<2.1
|
|
dj21: Django<2.2
|
|
dj22: Django<2.3
|
|
dj30: Django<3.1
|
|
dj31: Django<3.2
|
|
djmain: https://github.com/django/django/archive/main.tar.gz#egg=django
|
|
|
|
commands =
|
|
python --version
|
|
coverage run {envbindir}/django-admin.py test -v2 {posargs:dbtemplates}
|
|
coverage report
|
|
coverage xml
|
|
|
|
[testenv:flake8]
|
|
basepython = python3.8
|
|
commands = flake8 dbtemplates
|
|
deps = flake8
|
|
|
|
[flake8]
|
|
exclude=.tox
|
|
ignore=E501,E127,E128,E124
|