2020-05-10 17:07:39 +00:00
|
|
|
[tox]
|
|
|
|
envlist=
|
|
|
|
py{37,38}-core
|
|
|
|
py{37,38}-lint
|
2020-05-12 08:08:49 +00:00
|
|
|
py{37,38}-script
|
2020-05-10 17:07:39 +00:00
|
|
|
|
|
|
|
[testenv]
|
|
|
|
passenv=
|
|
|
|
PYTEST_ADDOPTS
|
|
|
|
basepython=
|
|
|
|
py37: python3.7
|
|
|
|
py38: python3.8
|
2020-05-21 19:37:43 +00:00
|
|
|
|
|
|
|
[common-install]
|
2020-05-12 08:08:49 +00:00
|
|
|
deps=
|
|
|
|
-r{toxinidir}/requirements.txt
|
|
|
|
-r{toxinidir}/requirements_test.txt
|
|
|
|
|
2020-05-12 08:32:17 +00:00
|
|
|
[common-core]
|
2020-05-21 19:37:43 +00:00
|
|
|
deps={[common-install]deps}
|
2020-05-10 17:07:39 +00:00
|
|
|
commands=
|
|
|
|
pytest {posargs:tests}
|
|
|
|
|
|
|
|
[common-lint]
|
2020-05-21 19:37:43 +00:00
|
|
|
deps={[common-install]deps}
|
2020-05-10 17:07:39 +00:00
|
|
|
commands=
|
2020-09-21 19:21:28 +00:00
|
|
|
flake8 --config={toxinidir}/flake8.ini {toxinidir}/tests
|
2020-05-12 08:08:49 +00:00
|
|
|
mypy --config-file {toxinidir}/mypy.ini -p eth2deposit
|
|
|
|
|
|
|
|
[common-script]
|
|
|
|
deps=
|
|
|
|
-r{toxinidir}/requirements_test.txt # for async-pytest
|
|
|
|
commands=
|
|
|
|
python {toxinidir}/test_deposit_script.py
|
2020-05-10 17:07:39 +00:00
|
|
|
|
|
|
|
[testenv:py37-core]
|
2020-05-21 19:37:43 +00:00
|
|
|
deps={[common-core]deps}
|
2020-05-12 08:32:17 +00:00
|
|
|
commands={[common-core]commands}
|
2020-05-10 17:07:39 +00:00
|
|
|
|
|
|
|
[testenv:py38-core]
|
2020-05-21 19:37:43 +00:00
|
|
|
deps={[common-core]deps}
|
2020-05-12 08:32:17 +00:00
|
|
|
commands={[common-core]commands}
|
2020-05-10 17:07:39 +00:00
|
|
|
|
|
|
|
[testenv:py37-lint]
|
2020-05-21 19:37:43 +00:00
|
|
|
deps={[common-lint]deps}
|
2020-05-10 17:07:39 +00:00
|
|
|
commands={[common-lint]commands}
|
|
|
|
|
|
|
|
[testenv:py38-lint]
|
2020-05-21 19:37:43 +00:00
|
|
|
deps={[common-lint]deps}
|
2020-05-10 17:07:39 +00:00
|
|
|
commands={[common-lint]commands}
|
2020-05-12 08:08:49 +00:00
|
|
|
|
|
|
|
[testenv:py37-script]
|
|
|
|
deps={[common-script]deps}
|
|
|
|
commands={[common-script]commands}
|
|
|
|
|
|
|
|
[testenv:py38-script]
|
|
|
|
deps={[common-script]deps}
|
|
|
|
commands={[common-script]commands}
|