50 lines
951 B
INI
50 lines
951 B
INI
[tox]
|
|
envlist=py39,py312,py314,py315,coverage
|
|
skip_missing_interpreters = true
|
|
minversion=3.12.0
|
|
|
|
[testenv]
|
|
deps=
|
|
pytest
|
|
pytest-cov
|
|
freezegun
|
|
koji
|
|
kobo>=0.10.0
|
|
rpm
|
|
setuptools
|
|
setenv =
|
|
COVERAGE_FILE={env:COVERAGE_FILE:{toxworkdir}/.coverage.{envname}}
|
|
commands=
|
|
pytest \
|
|
--cov "{toxinidir}/compose_utils" \
|
|
--cov-config "{toxinidir}/tox.ini" \
|
|
--junitxml {toxworkdir}/junit.{envname}.xml \
|
|
{posargs:.}
|
|
|
|
[testenv:py27]
|
|
deps =
|
|
{[testenv]deps}
|
|
unittest2
|
|
mock
|
|
|
|
[testenv:coverage]
|
|
skip_install = true
|
|
deps =
|
|
{[testenv]deps}
|
|
coverage
|
|
setenv = COVERAGE_FILE={toxworkdir}/.coverage
|
|
commands =
|
|
coverage combine
|
|
coverage report -m
|
|
coverage xml -o {toxworkdir}/coverage.xml
|
|
coverage html -d {toxworkdir}/htmlcov
|
|
depends = py27, py35, py36, py37
|
|
parallel_show_output = True
|
|
|
|
[flake8]
|
|
exclude = doc,*.pyc,*.py~,*.in,*.spec,*.sh,*.rst
|
|
filename = *.py
|
|
ignore = E501,E402,W503,E203
|
|
|
|
[run]
|
|
omit = tests/*
|