From 8e69f61a89b2b19b453184d893d15218bccc570e Mon Sep 17 00:00:00 2001 From: fmelihh Date: Sun, 12 May 2024 16:11:46 +0300 Subject: [PATCH] fix: ci fix --- .github/workflows/python_ci.yaml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/workflows/python_ci.yaml b/.github/workflows/python_ci.yaml index 98c8efd..c23ad3c 100644 --- a/.github/workflows/python_ci.yaml +++ b/.github/workflows/python_ci.yaml @@ -51,7 +51,9 @@ jobs: export COVERAGE_REPORT=$(python -c "import json;print(json.load(open('coverage.json'))['totals']['percent_covered'])") echo "##TOTAL COVERAGE: ${COVERAGE_REPORT}" - - name: Check TOTAL_COVERAGE greater than 60 - if: TOTAL_COVERAGE > 100 - run: - echo "Total coverage greater than %60" + - name: Check coverage threshold + run: | + if (($echo "$COVERAGE_REPORT < 60" | bc)); then + echo "Coverage less than 60%. Exiting..." + exit 1 + fi