mirror of
https://gitlab.com/pulsechaincom/staking-deposit-cli.git
synced 2024-12-22 03:30:36 +00:00
60 lines
1.2 KiB
INI
60 lines
1.2 KiB
INI
[tox]
|
|
envlist=
|
|
py{310,38}-core
|
|
py{310,38}-lint
|
|
py{310,38}-script
|
|
|
|
[testenv]
|
|
passenv=
|
|
PYTEST_ADDOPTS
|
|
basepython=
|
|
py310: python3.10
|
|
py38: python3.8
|
|
|
|
[common-install]
|
|
deps=
|
|
-r{toxinidir}/requirements.txt
|
|
-r{toxinidir}/requirements_test.txt
|
|
|
|
[common-core]
|
|
deps={[common-install]deps}
|
|
commands=
|
|
pytest {posargs:tests}
|
|
|
|
[common-lint]
|
|
deps={[common-install]deps}
|
|
commands=
|
|
flake8 --config={toxinidir}/flake8.ini {toxinidir}/tests
|
|
mypy --config-file {toxinidir}/mypy.ini -p staking_deposit
|
|
|
|
[common-script]
|
|
deps=
|
|
-r{toxinidir}/requirements_test.txt # for async-pytest
|
|
commands=
|
|
python {toxinidir}/test_deposit_script.py
|
|
python {toxinidir}/test_btec_script.py
|
|
|
|
[testenv:py310-core]
|
|
deps={[common-core]deps}
|
|
commands={[common-core]commands}
|
|
|
|
[testenv:py38-core]
|
|
deps={[common-core]deps}
|
|
commands={[common-core]commands}
|
|
|
|
[testenv:py310-lint]
|
|
deps={[common-lint]deps}
|
|
commands={[common-lint]commands}
|
|
|
|
[testenv:py38-lint]
|
|
deps={[common-lint]deps}
|
|
commands={[common-lint]commands}
|
|
|
|
[testenv:py310-script]
|
|
deps={[common-script]deps}
|
|
commands={[common-script]commands}
|
|
|
|
[testenv:py38-script]
|
|
deps={[common-script]deps}
|
|
commands={[common-script]commands}
|