tox: Simplify functional testenv definitions

We also simplify the default testenv and up the minimum tox version to
avoid potentially using tox under a Python 2.7 environment.

Change-Id: Ibe3a131afefeeb5bb7bf13a3e5e80fdc829d7962
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
This commit is contained in:
Stephen Finucane 2024-06-13 10:53:19 +01:00
parent c8255d70c8
commit 1a7a807592

19
tox.ini
View File

@ -1,6 +1,6 @@
[tox]
minversion = 3.18.0
envlist = py39,functional-py39,pep8
minversion = 4.6.0
envlist = py3,functional,pep8
[testenv]
usedevelop = True
@ -29,23 +29,10 @@ passenv =
# there is also secret magic in subunit-trace which lets you run in a fail only
# mode. To do this define the TRACE_FAILONLY environmental variable.
# The functional environment is the base env for functional tests.
[testenv:functional]
[testenv:functional{,-py38,-py39,-py310,-py311,-py312}]
commands =
stestr --test-path=./placement/tests/functional run {posargs}
[testenv:functional-py38]
commands =
{[testenv:functional]commands}
[testenv:functional-py39]
commands =
{[testenv:functional]commands}
[testenv:functional-py310]
commands =
{[testenv:functional]commands}
[testenv:pep8]
description =
Run style checks.