From d97bc654b8f46a09fd2b17debfceb7d785a50b51 Mon Sep 17 00:00:00 2001
From: Mohammad Torkashvand <mohammad.torkashvand@geant.org>
Date: Wed, 25 Oct 2023 16:34:04 +0200
Subject: [PATCH] add SKIP_ALL_TESTS to coverage report

---
 tox.ini | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/tox.ini b/tox.ini
index f59a410..090ca46 100644
--- a/tox.ini
+++ b/tox.ini
@@ -30,4 +30,7 @@ commands =
     coverage run --source ansible_inventory_generator -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