From cfb7031f1e5f11838e5ec5ca3db228536b344b57 Mon Sep 17 00:00:00 2001 From: ChristianZaccaria Date: Fri, 2 Feb 2024 14:03:56 +0000 Subject: [PATCH] Display Code Coverage failed message --- .github/workflows/unit-tests.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/unit-tests.yml b/.github/workflows/unit-tests.yml index d62c0eff3..495bf4871 100755 --- a/.github/workflows/unit-tests.yml +++ b/.github/workflows/unit-tests.yml @@ -28,4 +28,4 @@ jobs: run: | coverage run -m --source=src pytest -v tests/unit_test.py coverage=$(coverage report -m | tail -1 | tail -c 4 | head -c 2) - if (( $coverage < 90 )); then exit 1; else echo "Coverage passed, ${coverage}%"; fi + if (( $coverage < 90 )); then echo "Coverage failed at ${coverage}%"; exit 1; else echo "Coverage passed, ${coverage}%"; fi