Skip to content

Commit

Permalink
ty fix coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
feijooso committed Jun 25, 2024
1 parent 71b8b0e commit fb16620
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -59,11 +59,9 @@ jobs:
- name: Check coverage
run: |
source venv/bin/activate
COVERAGE=$(coverage report | grep 'TOTAL' | awk '{print $4}' | sed 's/%//')
COVERAGE=$(bash <(curl -s https://codecov.io/bash) -f ./coverage.xml -n codecov-umbrella -Z -F unittests | grep 'TOTAL' | awk '{print $4}' | sed 's/%//')
echo "Coverage: $COVERAGE%"
if (( $(echo "$COVERAGE < 85" | bc -l) )); then
echo "Coverage is below 85%!"
exit 1
fi
env:
USERS_SERVICE_URL: dummy:5000

0 comments on commit fb16620

Please sign in to comment.