-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
45 lines (41 loc) · 1.12 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
[tox]
envlist = libcloud{30,31,32,33,34,35,36}
# https://libcloud.apache.org/about.html#supported-python-versions
# envlist = py35,py36,py37,py38,py39,py310,pypy35,pypy36,pypy37,pypy38
[pytest]
addopts = -ra -q
testpaths = tests
[testenv]
description = Run pytest
passenv =
DRIVER_KEY
DRIVER_USER_ID
DRIVER_PASSWORD
DRIVER_TOKEN
deps =
libcloud30: apache-libcloud>=3.0.0,<3.1.0
libcloud31: apache-libcloud>=3.1.0,<3.2.0
libcloud32: apache-libcloud>=3.2.0,<3.3.0
libcloud33: apache-libcloud>=3.3.0,<3.4.0
libcloud34: apache-libcloud>=3.4.0,<3.5.0
libcloud35: apache-libcloud>=3.5.0,<3.6.0
libcloud36: apache-libcloud>=3.6.0,<3.7.0
-rrequirements-tox.txt
commands =
pytest {posargs}
[testenv:pre-commit]
description = Run all pre-commit hooks.
skip_install = true
deps = pre-commit
commands = pre-commit run --all-files
[testenv:coverage]
description = Run pytest with coverage
passenv =
DRIVER_KEY
DRIVER_USER_ID
DRIVER_PASSWORD
DRIVER_TOKEN
deps =
-rrequirements-tox.txt
commands =
pytest --cov --cov-append --cov-report=term-missing --cov-fail-under 84 {posargs}