Skip to content

Commit

Permalink
Add codecov test report upload
Browse files Browse the repository at this point in the history
  • Loading branch information
timj committed Nov 21, 2024
1 parent 580fc36 commit 56315d8
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:

Expand Down

0 comments on commit 56315d8

Please sign in to comment.