Skip to content

Commit

Permalink
Fix coverage report upload to codecov (#59)
Browse files Browse the repository at this point in the history
* update ci workflow

* increase tolerance for some tests

* add codecov

* separate coverage from test job

* fix coverage workflow

* use default pypi index for sync

* install pytest cov in workflow

* add pytest-cov to dev dependencies

* fix upload of coverage report to codecov (?)
  • Loading branch information
frazane authored Sep 6, 2024
1 parent 463f026 commit 22c440e
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
13 changes: 10 additions & 3 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,12 +56,19 @@ jobs:
- name: Install the project
run: uv sync --all-extras --dev

- name: Run tests
run: uv run pytest --cov=scoringrules tests/
- name: Run tests with coverage
run: |
uv run pytest --cov=scoringrules tests/
uv run coverage xml
- name: Upload results to Codecov
- name: Upload coverage report to Codecov
uses: codecov/codecov-action@v4
with:
file: ./coverage.xml
flags: unittests
env_vars: OS,PYTHON
name: codecov-umbrella
fail_ci_if_error: false
token: ${{ secrets.CODECOV_TOKEN }}


Expand Down
2 changes: 1 addition & 1 deletion uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 22c440e

Please sign in to comment.