-
Notifications
You must be signed in to change notification settings - Fork 18
/
tox.ini
33 lines (29 loc) · 849 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
# 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]
envlist = py{38,39,310}
[gh-actions]
python =
3.8: py38
3.9: py39
3.10: py310
[testenv]
deps = -rrequirements.txt
commands =
pytest --override-ini junit_family=xunit1 --junit-xml=./results/UnitTest/junit.xml \
--cov ./velocitas_sdk \
--cov-report=xml:results/CodeCoverage/cobertura-coverage.xml \
--cov-branch ./tests
[testenv:type]
basepython = python3
usedevelop = False
deps = -rrequirements.txt
commands =
mypy --config-file setup.cfg velocitas_sdk
commands_pre =
pip3 install -e {toxinidir}/
[coverage:run]
omit =
velocitas_sdk/proto/*