Skip to content

Commit

Permalink
ci: fix codecov (#37)
Browse files Browse the repository at this point in the history
  • Loading branch information
shenxiangzhuang authored Dec 21, 2024
1 parent 21931a8 commit cee043c
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,8 @@ jobs:
- name: Run tests and generate coverage report
run: uv run pytest --doctest-modules -v --cov=toystat --cov-fail-under 0 --cov-report=term --cov-report=xml --cov-report=html toystat tests

- name: Upload coverage to Codecov
uses: codecov/codecov-action@v5
- name: Upload test results to Codecov
if: success() && matrix.os == 'ubuntu-latest' && matrix.python-version == '3.13'
uses: codecov/test-results-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: ./coverage.xml
fail_ci_if_error: true
verbose: true

0 comments on commit cee043c

Please # to comment.