From b9496100c1954c01ea85e5343cdfca0be7a9de66 Mon Sep 17 00:00:00 2001 From: Mohammad Torkashvand <mohammad.torkashvand@geant.org> Date: Wed, 25 Oct 2023 16:47:01 +0200 Subject: [PATCH] skip coverge percentage cheking in case of $SKIP_ALL_TESTS is 1 --- tox.ini | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tox.ini b/tox.ini index f79b0ea3..c259455b 100644 --- a/tox.ini +++ b/tox.ini @@ -32,4 +32,7 @@ commands = coverage run --source gso --omit="gso/migrations/*" -m pytest {posargs} coverage xml coverage html - coverage report --fail-under 80 + sh -c "if [ $SKIP_ALL_TESTS -eq 1 ]; then echo 'Skipping coverage report'; else coverage report --fail-under 80; fi" + +allowlist_externals = + sh \ No newline at end of file -- GitLab