From 334cf82c1e86e1d1c9cfea0296c37c064d4d403f Mon Sep 17 00:00:00 2001 From: Raman Gupta <7243222+raman325@users.noreply.github.com> Date: Tue, 14 Nov 2023 09:00:14 -0500 Subject: [PATCH] Clean env first --- tox.ini | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/tox.ini b/tox.ini index b87f18c93..06c44bc24 100644 --- a/tox.ini +++ b/tox.ini @@ -1,14 +1,19 @@ [tox] -envlist = py311, test_orjson, lint, mypy +envlist = clean, py311, test_orjson, lint, mypy skip_missing_interpreters = True [gh-actions] python = - 3.11: py311, test_orjson, lint, mypy + 3.11: clean, py311, test_orjson, lint, mypy + +[testenv:clean] +deps = coverage +skip_install = true +commands = coverage erase [testenv] commands = - pytest --timeout=30 --cov=zwave_js_server --cov-report=xml {posargs} + pytest --timeout=30 --cov=zwave_js_server --cov-report=xml --cov-append {posargs} deps = -rrequirements.txt -rrequirements_test.txt