-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtox.ini
69 lines (58 loc) · 1.25 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
60
61
62
63
64
65
66
67
68
69
[base]
name = arch
files = {[base]name} tests setup.py
[tox]
envlist =
functional
unit
[testenv]
extras =
test
setenv =
COVERAGE_FILE = {env:COVERAGE_FILE:.coverage-{envname}}
deps =
min_versions: Requirements-Builder
pytest
changedir = tests/functional
commands =
min_versions: requirements-builder --level=min --extras=test -o {envtmpdir}/requirements_min.txt setup.py
min_versions: pip install -r {envtmpdir}/requirements_min.txt
min_versions: pip freeze
./run.sh
[testenv:coverage]
skip_install = true
deps = coverage
allowlist_externals = /bin/bash
commands =
/bin/bash -c 'coverage combine .coverage-py*'
coverage xml
coverage report
[testenv:check-packaging]
skip_install = true
deps =
build
twine
commands =
python -m build -o {envtmpdir}/dist
twine check {envtmpdir}/dist/*
[testenv:min_versions]
basepython = python3.11
[testenv:lint]
basepython = python3.11
deps =
pre-commit
pylint
commands =
pre-commit run --all-files --show-diff-on-failure
pylint -j {env:PYLINT_NPROCS:1} {[base]files}
[testenv:functional]
extras = all
changedir = tests/functional
commands =./run.sh
[testenv:unit]
extras = all
changedir = tests/unit
commands = pytest
[gh-actions]
python =
3.11: py311