Skip to content

Commit

Permalink
Merge pull request #183 from tobac-project/update_codecov_yml
Browse files Browse the repository at this point in the history
Updates to codecov configuration
  • Loading branch information
freemansw1 authored Oct 17, 2022
2 parents b910b18 + b061073 commit dfe3b38
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 2 deletions.
4 changes: 3 additions & 1 deletion .coveragerc
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
[run]
source=tobac
omit = tobac/tests/*
omit =
tobac/tests/*
setup.py
2 changes: 1 addition & 1 deletion .github/workflows/codecov-CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
run: mamba install --quiet --yes --file conda-requirements.txt coverage pytest-cov &&
python -m coverage run -m pytest --cov=./ --cov-report=xml
- name: Upload Coverage to Codecov
uses: codecov/codecov-action@v2
uses: codecov/codecov-action@v3
with:
fail_ci_if_error: true
flags: unittests
Expand Down
22 changes: 22 additions & 0 deletions codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Codecov.io settings

coverage:
status:
project:
default:
# basic settings
# auto target means look at deltas from previous
target: auto
# Threshold we can drop coverage before failing CI
threshold: 1%
base: auto
flags:
- unit
paths:
- "tobac"

# what folders and files to ignore
ignore:
- "tobac/tests/.*"
- "setup.py"

0 comments on commit dfe3b38

Please sign in to comment.