From fb1662090ce9d4dfeb34594de6cbb34c356906cf Mon Sep 17 00:00:00 2001 From: feijooso Date: Tue, 25 Jun 2024 00:48:03 -0300 Subject: [PATCH] ty fix coverage --- .github/workflows/tests.yaml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index 4913888..c77b0eb 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -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