forked from django-json-api/django-rest-framework-json-api
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
61 lines (52 loc) · 1.35 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
56
57
58
59
60
61
[tox]
envlist =
py{36,37,38,39}-django{22,30,31}-drf{312,master},
lint,docs
[gh-actions]
python =
3.6: py36
3.7: py37
3.8: py38
3.9: py39
[gh-actions:env]
DJANGO =
2.2: django22
3.0: django30
3.1: django31
DJANGO_REST_FRAMEWORK =
3.12: drf312
master: drfmaster
[testenv]
deps =
django22: Django>=2.2,<2.3
django30: Django>=3.0,<3.1
django31: Django>=3.1,<3.2
drf312: djangorestframework>=3.12,<3.13
drfmaster: https://github.com/encode/django-rest-framework/archive/master.zip
-rrequirements/requirements-testing.txt
-rrequirements/requirements-optionals.txt
setenv =
PYTHONPATH = {toxinidir}
DJANGO_SETTINGS_MODULE=example.settings.test
commands =
pytest --cov --no-cov-on-fail --cov-report xml {posargs}
[testenv:black]
basepython = python3.6
deps =
-rrequirements/requirements-codestyle.txt
commands = black --check .
[testenv:lint]
basepython = python3.6
deps =
-rrequirements/requirements-codestyle.txt
-rrequirements/requirements-testing.txt
-rrequirements/requirements-optionals.txt
commands = flake8
[testenv:docs]
basepython = python3.6
deps =
-rrequirements/requirements-testing.txt
-rrequirements/requirements-optionals.txt
-rrequirements/requirements-documentation.txt
commands =
sphinx-build -W -b html -d docs/_build/doctrees docs docs/_build/html