-
Notifications
You must be signed in to change notification settings - Fork 108
/
tox.ini
74 lines (66 loc) · 1.55 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
62
63
64
65
66
67
68
69
70
71
72
73
74
[tox]
isolated_build = true
envlist =
py{37,38,39}-django32
py{38,39,310}-django40
py{38,39,310}-django41
quality
security
build
[travis:env]
DJANGO =
3.2: django32
4.0: django40
4.1: django41
[testenv]
allowlist_externals = poetry
skip_install = true
commands =
poetry install -vvv
poetry run pytest tests/ --cov=graphene_django_extras
[testenv:py{37,38,39}-django32]
allowlist_externals = poetry
skip_install = true
commands =
poetry update --lock
poetry install -vvv
poetry run pip install 'django~=3.2'
poetry run pytest tests/ --cov=graphene_django_extras
[testenv:py{38,39,310}-django40]
allowlist_externals = poetry
skip_install = true
commands =
poetry update --lock
poetry install -vvv
poetry run pip install 'django~=4.0'
poetry run pytest tests/ --cov=graphene_django_extras
[testenv:py{38,39,310}-django41]
allowlist_externals = poetry
skip_install = true
commands =
poetry update --lock
poetry install -vvv
poetry run pip install 'django~=4.1'
poetry run pytest tests/ --cov=graphene_django_extras
[testenv:quality]
allowlist_externals = poetry
skip_install = true
commands =
poetry update --lock
poetry install -vvv
poetry run black --check .
poetry run flake8 .
[testenv:security]
allowlist_externals = poetry
skip_install = true
commands =
poetry update --lock
poetry install -vvv
poetry run bandit .
[testenv:build]
allowlist_externals = poetry
skip_install = true
commands =
poetry update --lock
poetry install -vvv
poetry build