-
Notifications
You must be signed in to change notification settings - Fork 12
/
tox.ini
49 lines (43 loc) · 954 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
47
48
49
[tox]
isolated_build = true
envlist =
py37, py38, py39, coverage
lint, docs, packaging
[gh-actions]
python =
3.9: py39, coverage, lint, docs, packaging
3.8: py38, coverage
3.7: py37, coverage
[testenv]
passenv = CI
deps = poetry
commands_pre = poetry run python -m pip install pip -U
commands =
poetry install --no-root -v
poetry run pytest []
[testenv:coverage]
basepython = python3
commands =
poetry install --no-root -v
poetry run pytest --cov=pysesameos2 --cov-report=xml --cov-report term-missing []
[testenv:docs]
basepython = python3
deps = poetry
commands =
poetry install --no-root -v -E doc
poetry run mkdocs build
[testenv:packaging]
skip_install = True
deps =
poetry
twine
commands =
poetry build
twine check dist/*
[testenv:lint]
skip_install = True
passenv = TERM
deps = pre-commit
commands_pre =
commands =
pre-commit run [] --all-files --show-diff-on-failure --hook-stage=manual