-
Notifications
You must be signed in to change notification settings - Fork 1
/
tox.ini
51 lines (45 loc) · 1.04 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
; with ideas copied from: https://github.com/zopefoundation/RestrictedPython/blob/master/tox.ini
[tox]
isolated_build = True
envlist = setup,py312,report
toxworkdir = {toxinidir}/build/.tox
[testenv]
usedevelop = True
allowlist_externals = which
commands =
python --version
which python
which pip
which pytest
pytest --cov=musical_games --cov-report=html:build/coverage/{envname} --cov-append --html=build/pytest/report-{envname}.html --self-contained-html {posargs}
deps =
pytest
pytest-cov
pytest-html
joblib
tqdm
moto
docker
setenv =
COVERAGE_FILE=build/.coverage.{envname}
[testenv:report]
deps = coverage
skip_install = true
depends = py312
setenv =
COVERAGE_FILE=build/.coverage
commands =
coverage erase
coverage combine
coverage html -d build/coverage/all/
coverage report
[testenv:setup]
deps = coverage
skip_install = true
setenv =
COVERAGE_FILE=build/.coverage
commands = coverage erase
[pytest]
testpaths = tests
cache_dir = build/.pytest_cache
addopts = --capture=tee-sys