Skip to content

Commit

Permalink
Code Coverage github action (#202)
Browse files Browse the repository at this point in the history
Adjust CI github action to upload code coverage to codecov.io.
  • Loading branch information
jagerber48 authored Mar 15, 2024
1 parent ec15317 commit 05361a7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 11 deletions.
14 changes: 5 additions & 9 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,15 +33,11 @@ jobs:
- name: Test source code and docs
run: |
pytest --cov . --cov-report xml
# - name: Upload coverage reports to Codecov
# uses: codecov/codecov-action@v3
# with:
# token: ${{ secrets.CODECOV_TOKEN }}
# flags: ${{ matrix.python-version }}
# files: coverage.xml
# fail_ci_if_error: true
# verbose: true
#
- name: Upload coverage reports to Codecov
uses: codecov/[email protected]
with:
token: ${{ secrets.CODECOV_TOKEN }}
slug: lmfit/uncertainties
results:
# This step aggregates the results from all the tests and allows us to
# require only this single job to pass for a PR to be merged rather than
Expand Down
4 changes: 2 additions & 2 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ uncertainties
:target: https://pypi.org/project/uncertainties/
.. image:: https://pepy.tech/badge/uncertainties/week
:target: https://pepy.tech/project/uncertainties
.. image:: https://codecov.io/gh/lebigot/uncertainties/branch/master/graph/badge.svg
:target: https://codecov.io/gh/lebigot/uncertainties/
.. image:: https://codecov.io/gh/lmfit/uncertainties/branch/master/graph/badge.svg
:target: https://codecov.io/gh/lmfit/uncertainties/
.. image:: https://img.shields.io/github/actions/workflow/status/lmfit/uncertainties/python-package.yml?logo=github%20actions
:target: https://github.com/lmfit/uncertainties/actions/workflows/python-package.yml

Expand Down

0 comments on commit 05361a7

Please sign in to comment.