-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathtox.ini
46 lines (42 loc) · 907 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
[tox]
envlist = py39-pytest-{linux, darwin, windows}
[testenv]
basepython = python3.9
deps =
allowlist_externals =
poetry
coverage
setenv =
RUNTEST_CFG = {env:RUNTEST_CFG}
commands =
poetry install -E "all"
coverage run --source=ayugespidertools -m pytest
coverage combine
coverage report
coverage xml
[testenv:py39-pytest-linux]
description = Run pytest on Linux.
platform = linux
deps =
{[testenv]deps}
setenv =
RUNTEST_CFG = {env:RUNTEST_CFG}
commands =
{[testenv]commands}
[testenv:py39-pytest-darwin]
inherit_from = py39-pytest
description = Run pytest on Darwin.
platform = darwin
deps =
{[testenv]deps}
setenv =
RUNTEST_CFG = {env:RUNTEST_CFG}
[testenv:py39-pytest-windows]
description = Run pytest on Windows with pywin32.
platform = win32
passenv = USERNAME
deps =
{[testenv]deps}
pywin32
setenv =
RUNTEST_CFG = {env:RUNTEST_CFG}