Configure Zuul to use tox-based test jobs. Fixes: #308 Signed-off-by: Nils Philippsen <nils@redhat.com>
32 lines
751 B
INI
32 lines
751 B
INI
[tox]
|
|
minversion = 3.9.0
|
|
envlist = py{39,310,311,312}
|
|
isolated_build = true
|
|
skip_missing_interpreters = true
|
|
|
|
[testenv]
|
|
skip_install = true
|
|
sitepackages = false
|
|
allowlist_externals = poetry
|
|
commands_pre =
|
|
poetry install
|
|
commands =
|
|
poetry run -- pytest --import-mode importlib -o 'addopts=--cov-config .coveragerc --cov=rpmautospec --cov=koji_plugins --cov-report term --cov-report xml --cov-report html' -n auto tests/
|
|
|
|
[testenv:black]
|
|
commands =
|
|
pip -q install black
|
|
black --diff rpmautospec/ koji_plugins/ tests/
|
|
|
|
[testenv:flake8]
|
|
commands =
|
|
pip -q install flake8
|
|
flake8 rpmautospec/ koji_plugins/ tests/
|
|
|
|
[testenv:isort]
|
|
commands =
|
|
pip -q install isort
|
|
isort --diff rpmautospec/ koji_plugins/ tests/
|
|
|
|
[flake8]
|
|
max-line-length = 100
|