-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathtox.ini
55 lines (50 loc) · 962 Bytes
/
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 =
py{37,38,39,310}-django{22,32}
py{37,38,39,310}-django32-zdsclient{10}
isort
docs
black
skip_missing_interpreters = true
[gh-actions]
DJANGO =
3.2: django32
ZDS_CLIENT =
1.0: zdsclient10
[testenv]
extras =
tests
coverage
deps =
django32: Django~=3.2.0
zdsclient10: gemma-zds-client~=1.0.0
passenv =
PGUSER
PGPORT
PGPASSWORD
commands =
py.test tests \
--junitxml=reports/junit.xml \
--cov --cov-report xml:reports/coverage-{envname}.xml \
{posargs}
[testenv:isort]
extras = tests
skipsdist = True
commands = isort --recursive --check-only --diff .
[testenv:black]
extras = tests
skipsdist = True
commands = black --check vng_api_common tests testapp docs
[testenv:docs]
basepython=python
changedir=docs
skipsdist=true
extras =
notifications
tests
docs
commands=
py.test check_sphinx.py -v \
--junitxml=../reports/junit-{envname}.xml \
--tb=auto \
{posargs}