1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50
|
[tox]
envlist =
py35-dj{111,200,210,220},
py36-dj{200,210,220,300,310,master},
py37-dj{200,210,220,300,310,master},
py38-dj{220,300,310,master}
py39-dj{220,300,310,master}
[testenv]
commands =
coverage erase
py.test {posargs}
basepython =
py35: python3.5
py36: python3.6
py37: python3.7
py38: python3.8
py39: python3.9
deps =
dj111: Django~=1.11.0
dj111: djangorestframework~=3.11.0
dj200: Django~=2.0.0
dj200: djangorestframework
dj210: Django~=2.1.0
dj210: djangorestframework
dj220: Django~=2.2.0
dj220: djangorestframework
dj300: Django~=3.0.0
dj300: djangorestframework
dj310: Django~=3.1.0
dj310: djangorestframework
djmaster: https://github.com/django/django/zipball/master#egg=Django
djmaster: https://github.com/encode/django-rest-framework/zipball/master#egg=djangorestframework
pytest
pytest-cov
pytest-django
pytest-flake8
pytest-runner
setenv =
DJANGO_SETTINGS_MODULE = test_project.settings
PYTHONDONTWRITEBYTECODE = 1
install_command = pip install --pre {opts} {packages}
[gh-actions]
python =
3.5: py35
3.6: py36
3.7: py37
3.8: py38
3.9: py39
|