Install coverage only when needed

The coverage library is used only in the "cover" target.

Change-Id: I8f867c0bb48a91f0fe6dd0a4d79e20ea31c6ff08
Signed-off-by: Takashi Kajinami <kajinamit@oss.nttdata.com>
This commit is contained in:
Takashi Kajinami
2025-10-03 23:34:26 +09:00
parent 69bd211472
commit b92d2d65cd
2 changed files with 3 additions and 1 deletions

View File

@@ -1,4 +1,3 @@
coverage>=3.6 # Apache-2.0
openstacksdk>=0.10.0 # Apache-2.0
oslotest>=1.10.0 # Apache-2.0
tempest>=10 # Apache-2.0

View File

@@ -53,6 +53,9 @@ deps = -r{toxinidir}/doc/requirements.txt
commands = {posargs}
[testenv:cover]
deps =
{[testenv]deps}
coverage>=3.6 # Apache-2.0
setenv =
{[testenv]setenv}
PYTHON=coverage run --source aodhclient --parallel-mode