From 56315d8b0635f33b167617e7b3038cfba8783709 Mon Sep 17 00:00:00 2001 From: Tim Jenness Date: Thu, 21 Nov 2024 13:00:18 -0700 Subject: [PATCH] Add codecov test report upload --- .github/workflows/build.yaml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index d88ad1b..896eab3 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -46,13 +46,19 @@ jobs: run: uv pip install --system --no-deps -v . - name: Run tests - run: pytest -r a -v -n 3 --cov=tests --cov=lsst.pex.config --cov-report=xml --cov-report=term + run: pytest -r a -v -n 3 --cov=tests --cov=lsst.pex.config --cov-report=xml --cov-report=term \ + --junitxml=junit.xml -o junit_family=legacy - name: Upload coverage to codecov uses: codecov/codecov-action@v4 with: files: ./coverage.xml token: ${{ secrets.CODECOV_TOKEN }} + - name: Upload test results to Codecov + if: ${{ !cancelled() }} + uses: codecov/test-results-action@v1 + with: + token: ${{ secrets.CODECOV_TOKEN }} pypi: