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: