-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
59 lines (54 loc) · 1.31 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
[tox]
minversion = 3.4
isolated_build = true
skip_missing_interpreters = true
skipsdist = true
envlist =
checks,
py37,
py38,
py39,
py310,
docs
[pytest]
addopts =
--benchmark-disable
--cov-branch --cov-report=term-missing --cov-fail-under=90
junit_family = xunit2
testpaths =
tests
[testenv]
whitelist_externals = poetry
skip_install = true
commands_pre =
poetry install -E tests
commands =
python -c 'import shutil; shutil.rmtree("htmlcov", ignore_errors=True)'
poetry run pytest --basetemp="{envtmpdir}" --cov=bertlv {posargs:--cov-report=html}
[testenv:benchmark]
whitelist_externals = poetry
skip_install = true
commands_pre =
poetry install -E tests
commands =
poetry run pytest --basetemp="{envtmpdir}" --benchmark-enable --benchmark-only \
{posargs:--benchmark-autosave --benchmark-compare}
[testenv:checks]
passenv =
SSH_AUTH_SOCK
http_proxy
https_proxy
no_proxy
setenv =
PRE_COMMIT_HOME = {envdir}/.pre-commit
commands_pre =
poetry install -E checks -E tests
commands =
poetry run pre-commit run --all-files {posargs}
[testenv:docs]
changedir = docs
commands_pre =
poetry install -E docs
commands =
python -c 'import shutil; shutil.rmtree("_build", ignore_errors=True)'
poetry run sphinx-build -M html . _build -W