Install coverage only when needed

It's required only when generating a coverage report.

Change-Id: I09ba4c7ddeb9751a1fec95de6daf599cac301919
Signed-off-by: Takashi Kajinami <kajinamit@oss.nttdata.com>
This commit is contained in:
Takashi Kajinami committed 2026-10-04 02:10:09 +09:00
1 parent 788d3be861
commit b598695c5a
2 files changed
+3 -2

No files matched your search

-2
View File
@@ -9,6 +9,4 @@ oslotest>=3.2.0 # Apache-2.0
# test environment.
oslo.log>=3.36.0 # Apache-2.0
coverage>=4.0 # Apache-2.0
requests-mock>=1.5.0 # Apache-2.0
+3
View File
@@ -43,6 +43,9 @@ commands =
[testenv:cover]
setenv =
PYTHON=coverage run --source oslo_config --parallel-mode
deps =
{[testenv]deps}
coverage>=5.0 # Apache-2.0
commands =
coverage erase
{[testenv]commands}