forked from ninemoreminutes/django-crum
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
55 lines (52 loc) · 1.25 KB
/
tox.ini
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
51
52
53
54
55
[tox]
envlist =
py35-dj{111,20,21,22},
py36-dj{20,21,22,30,31,32},
py37-dj{20,21,22,30,31,32},
py38-dj{22,30,31,32,main}
py39-dj{22,30,31,32,main}
[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
dj20: Django~=2.0.0
dj20: djangorestframework
dj21: Django~=2.1.0
dj21: djangorestframework
dj22: Django~=2.2.0
dj22: djangorestframework
dj30: Django~=3.0.0
dj30: djangorestframework
dj31: Django~=3.1.0
dj31: djangorestframework
dj32: Django>=3.2.0a0,<3.3
dj32: djangorestframework
djmain: https://github.com/django/django/zipball/main#egg=Django
djmain: 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}
[testenv:py3{8,9}-djmain]
ignore_outcome = true
[gh-actions]
python =
3.5: py35
3.6: py36
3.7: py37
3.8: py38
3.9: py39