From d1c3e286f11efb018d2644592e78df193813246c Mon Sep 17 00:00:00 2001 From: Jatin K Malik Date: Sat, 19 Apr 2025 00:08:08 -0500 Subject: [PATCH] Add Codecov integration for test results and coverage reports (#20) --- .github/workflows/ci.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2009597..4f65908 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -101,7 +101,13 @@ jobs: run: | source venv/bin/activate # Make sure Python can find the 'src' module - PYTHONPATH=$PWD pytest --cov=src tests/ + PYTHONPATH=$PWD pytest --junitxml=junit.xml --cov=src tests/ + + - name: Upload test results to Codecov + if: ${{ !cancelled() }} + uses: codecov/test-results-action@v1 + with: + token: ${{ secrets.CODECOV_TOKEN }} - name: Upload coverage reports to Codecov uses: codecov/codecov-action@v5