Skip to content

Commit

Permalink
Codecov updates (#246)
Browse files Browse the repository at this point in the history
This updates the `.codecov.yml` file to be more compliant
with codecov expectations.
And it changes the invocation of pytest with coverage in the testing
environment to track the installed files.

---------

Co-authored-by: Will Shanks <[email protected]>
  • Loading branch information
newville and wshanks authored Jul 7, 2024
1 parent 4b309a6 commit 411ce33
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
8 changes: 3 additions & 5 deletions .codecov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,12 @@ codecov:
after_n_builds: 9

coverage:
precision: 2
round: down
range: "90...100"
status:
project:
default:
target: auto
threshold: 2.0%
informational: true
patch:
default:
target: auto
threshold: 20%
informational: true
3 changes: 2 additions & 1 deletion .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ jobs:
python -m pip install .[arrays,test]
- name: Test source code and docs
run: |
pytest --cov . --cov-report xml
cd tests
python -m pytest --cov=uncertainties --cov=. --cov-report=xml --cov-report=term
- name: Upload coverage reports to Codecov
uses: codecov/[email protected]
with:
Expand Down

0 comments on commit 411ce33

Please sign in to comment.