From 01b52f56ed97fb8e9f0352e0190998e580f84920 Mon Sep 17 00:00:00 2001 From: Varsha Prasad Narsing Date: Mon, 30 Sep 2024 14:58:50 -0700 Subject: [PATCH] Add codecov for unit test coverage --- .github/workflows/unit-tests.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/unit-tests.yml b/.github/workflows/unit-tests.yml index 5d12791b5..bb010e2cd 100755 --- a/.github/workflows/unit-tests.yml +++ b/.github/workflows/unit-tests.yml @@ -29,3 +29,8 @@ jobs: 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 echo "Coverage failed at ${coverage}%"; exit 1; else echo "Coverage passed, ${coverage}%"; fi + continue-on-error: true + - name: Upload to Codecov + uses: codecov/codecov-action@v4 + with: + token: ${{ secrets.CODECOV_TOKEN }}