2016-10-17 12:17:18 +00:00
|
|
|
[tox]
|
2017-06-23 17:23:08 +00:00
|
|
|
envlist =
|
|
|
|
py36,
|
2018-10-01 11:52:41 +00:00
|
|
|
py37,
|
2019-08-09 16:08:35 +00:00
|
|
|
py38,
|
2020-10-08 09:51:57 +00:00
|
|
|
py39,
|
2022-02-11 11:05:20 +00:00
|
|
|
py310
|
2016-10-17 12:17:18 +00:00
|
|
|
|
|
|
|
[testenv]
|
2017-06-23 17:23:08 +00:00
|
|
|
deps =
|
2019-08-09 16:08:35 +00:00
|
|
|
-rrequirements.txt
|
2021-07-29 07:19:05 +00:00
|
|
|
-rrequirements-optional.txt
|
2019-08-09 16:08:35 +00:00
|
|
|
pytest>=3.6
|
|
|
|
pytest-random-order
|
2019-09-10 13:31:03 +00:00
|
|
|
importlib-metadata!=0.21
|
2017-06-23 17:23:08 +00:00
|
|
|
commands =
|
2018-07-04 15:40:56 +00:00
|
|
|
# Generate local files
|
2018-08-21 16:13:53 +00:00
|
|
|
python setup.py build
|
2018-07-04 15:40:56 +00:00
|
|
|
# Working in the local directory, try to compile all bytecode
|
2019-08-09 16:08:35 +00:00
|
|
|
python -m compileall src tests
|
|
|
|
# Smoke-test trezorctl
|
2018-07-04 15:40:56 +00:00
|
|
|
trezorctl --help
|
2019-08-09 16:08:35 +00:00
|
|
|
# Run test suite
|
|
|
|
pytest --random-order tests
|