Files
Roman Krček 98250acd21
Some checks failed
Build Docker image / test (push) Failing after 2m42s
Build Docker image / build (push) Has been skipped
Add passenv to tox.ini
2024-10-14 09:33:52 +02:00

26 lines
620 B
INI

[tox]
envlist = py311, flake8, bandit, codespell, unit, coverage
[testenv]
basepython = python3.11
deps = -r {toxinidir}/test-requirements.txt
-r {toxinidir}/requirements.txt
pass_env = app_env, app_id, api_hash, bot_token, \
storage, allowed_ids, log_level
[testenv:flake8]
commands = flake8 telegram_downloader_bot/
[testenv:bandit]
commands = bandit -r telegram_downloader_bot/
[testenv:codespell]
commands = codespell telegram_downloader_bot/
[testenv:unit]
commands = stestr run --test-path tests/
[testenv:coverage]
commands =
coverage run -m unittest discover
coverage report -m