-
Notifications
You must be signed in to change notification settings - Fork 4
/
tox.ini
61 lines (51 loc) · 1.3 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 = py3{11,10,9,8},
bdd-py3{11,10,9,8}
skip_missing_interpreters = True
minversion = 4.0
isolated_build = true
skipsdist = true
ignore_basepython_conflict = false
[testenv]
allowlist_externals = poetry
passenv =
HTTP_PROXY
HTTPS_PROXY
NO_PROXY
commands =
poetry install
inv test
# fix to avoid using tox-pyenv
# See https://warchantua.hashnode.dev/how-to-use-tox-4-with-pyenv-and-poetry
[testenv:py311]
base_python = python3.11
[testenv:py310]
base_python = python3.10
[testenv:py39]
base_python = python3.9
[testenv:py38]
base_python = python3.8
[testenv:bdd]
allowlist_externals =
{[testenv]allowlist_externals}
bash
passenv = {[testenv]passenv}
commands =
poetry install
inv bdd
[testenv:bdd-py311]
allowlist_externals = {[testenv:bdd]allowlist_externals}
passenv = {[testenv:bdd]passenv}
commands = {[testenv:bdd]commands}
[testenv:bdd-py310]
allowlist_externals = {[testenv:bdd]allowlist_externals}
passenv = {[testenv:bdd]passenv}
commands = {[testenv:bdd]commands}
[testenv:bdd-py39]
allowlist_externals = {[testenv:bdd]allowlist_externals}
passenv = {[testenv:bdd]passenv}
commands = {[testenv:bdd]commands}
[testenv:bdd-py38]
allowlist_externals = {[testenv:bdd]allowlist_externals}
passenv = {[testenv:bdd]passenv}
commands = {[testenv:bdd]commands}