-
Notifications
You must be signed in to change notification settings - Fork 3
/
tox.ini
38 lines (34 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
# tox (https://tox.readthedocs.io/) is a tool for running tests
# in multiple virtualenvs. This configuration file will run the
# test suite on all supported python versions. To use it, "pip install tox"
# and then run "tox" from this directory.
[tox]
isolated_build = True
envlist = py37, py38, py39, py310, py311, coverage, lint
[testenv]
platform = linux|darwin
passenv =
__E4S_CL_SYSTEM_PREFIX__
CICD
setenv =
__E4S_CL_TEST__ = True
__E4S_CL_USER_PREFIX__ = {toxinidir}/.tox
__E4S_CL_SCRIPT__ = e4s-cl
PYTHONPATH = {toxinidir}
PATH = {toxinidir}/scripts{:}{env:PATH}
deps =
commands =
python -m unittest discover -v -s tests -k {posargs:'*'}
[testenv:coverage]
deps = coverage
commands =
coverage run -m unittest discover -s tests -k {posargs:'*'}
coverage report -m --fail-under=60
[testenv:lint]
deps =
pylint
commands =
python -m pylint --rcfile {toxinidir}/pylintrc \
--output-format=colorized \
--fail-under=9 \
-r n {toxinidir}/e4s_cl {toxinidir}/tests