os-apply-config/tox.ini
Takashi Kajinami 3c7f9b9b61 Update python job template
... and supported python runtime versions.

This also makes some changes in tox.ini to adapt to tox 4.

Change-Id: I765665685fe7f56b89b9dcdcd2e412aeacb5d224
2023-10-18 14:58:16 +09:00

38 lines
783 B
INI

[tox]
envlist = py3,pep8
ignore_basepython_conflict = True
minversion = 2.0
[testenv]
basepython = python3
usedevelop = True
install_command = pip install {opts} {packages}
deps =
-c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master}
-r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt
commands =
stestr run --slowest {posargs}
[tox:jenkins]
sitepackages = True
[testenv:pep8]
commands = flake8
[testenv:cover]
setenv =
PYTHON=coverage run --source os_apply_config --parallel-mode
commands =
stestr run {posargs}
coverage combine
coverage html -d cover
coverage xml -o cover/coverage.xml
[testenv:venv]
commands = {posargs}
[flake8]
exclude = .venv,.tox,dist,doc,*.egg
show-source = true