-
Notifications
You must be signed in to change notification settings - Fork 27
/
tox.ini
39 lines (33 loc) · 933 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
[tox]
envlist = py36, py37, py39, pylint, flake8, integration_tests
skip_missing_interpreters = True
[testenv]
# only run unit tests as they do not need additional hardware
# --editable=file:///{toxinidir}/../btlewrap
deps =
-rrequirements.txt
-rrequirements-test.txt
passenv = TRAVIS TRAVIS_*
commands = pytest --cov=mitemp_bt --timeout=10 test/unit_tests
[testenv:integration_tests]
#these tests are run separately as they require real hardware
#need the command line argument -- --mac=<some mac> to work
commands = pytest --timeout=60 {posargs} test/integration_tests
[flake8]
max-complexity = 10
install-hook=git
max-line-length=120
[testenv:flake8]
base=python3
ignore_errors=True
commands=flake8
[testenv:pylint]
basepython = python3
skip_install = true
commands = pylint -j4 mitemp_bt test setup.py demo.py
[gh-actions]
python =
3.6: py36
3.7: py37
3.8: py38, pylint, flake8
3.9: py39, pylint, flake8