-
Notifications
You must be signed in to change notification settings - Fork 108
/
Copy pathtox.ini
100 lines (88 loc) · 2.2 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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
[tox]
isolated_build = true
envlist =
py{38,39}-django32
py{38,39,310}-django40
py{38,39,310}-django41
py{310,311,312}-django50
py{310,311,312}-django51
quality
security
build
[travis:env]
DJANGO =
3.2: django32
4.0: django40
4.1: django41
5.0: django50
5.1: django51
[testenv]
allowlist_externals = poetry
skip_install = true
commands =
poetry install -vvv
poetry run pytest tests/ --cov=graphene_django_extras
[testenv:py{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:py{310,311,312}-django50]
allowlist_externals = poetry
skip_install = true
commands =
poetry update --lock
poetry install -vvv
poetry run python -m ensurepip --upgrade
poetry run pip install 'django~=5.0'
poetry run pytest tests/ --cov=graphene_django_extras
[testenv:py{310,311,312}-django51]
allowlist_externals = poetry
skip_install = true
commands =
poetry update --lock
poetry install -vvv
poetry run python -m ensurepip --upgrade
poetry run pip install 'django~=5.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