From 4413c4b0944a7965bd4229c1a1301d9a3691c990 Mon Sep 17 00:00:00 2001 From: Nicolas Dandrimont <nicolas@dandrimont.eu> Date: Thu, 8 Jun 2023 13:52:58 +0200 Subject: [PATCH] Make the default testenv target more generic Instead of going back to py3, pass through the environment name, so that it can be called with an arbitrary interpreter version. --- tox.ini | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tox.ini b/tox.ini index f3e93ba7..2e7a613f 100644 --- a/tox.ini +++ b/tox.ini @@ -16,12 +16,12 @@ commands = minimal: {envsitepackagesdir}/swh/model/tests/test_cli.py -m 'not requires_optional_deps' \ {posargs} -[testenv:py3] +[testenv:py3{,7,8,9,10,11,12,13},pypy3{,5,6,7,8,9,10,11,12,13}] skip_install = true -deps = tox +allowlist_externals = tox commands = - tox run -e py3-full-cover -- {posargs} - tox run -e py3-minimal -- {posargs} + tox run -e {env_name}-full-cover -- {posargs} + tox run -e {env_name}-minimal [testenv:black] skip_install = true -- GitLab