-
Notifications
You must be signed in to change notification settings - Fork 5
/
tox.ini
50 lines (45 loc) · 1005 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
50
[tox]
isolated_build = true
envlist =
py38, py39, py310, py311
coverage, lint, packaging
[gh-actions]
python =
3.11: py311, coverage, lint, packaging
3.10: py310, coverage
3.9: py39, coverage
3.8: py38, coverage
[testenv]
setenv =
PYTHONIOENCODING=utf-8
PY_COLORS=1
passenv = CI
allowlist_externals =
poetry
commands_pre =
poetry self update
poetry self add "poetry-dynamic-versioning[plugin]"
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=octodns_netbox --cov-report=xml --cov-report term-missing []
[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