Skip to content

Commit

Permalink
fix: ci fix
Browse files Browse the repository at this point in the history
  • Loading branch information
fmelihh committed May 12, 2024
1 parent e8731ab commit 8e69f61
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/python_ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 8e69f61

Please sign in to comment.