Skip to content

Commit

Permalink
Merge pull request #720 from helmholtz-analytics/enhancement/719-cove…
Browse files Browse the repository at this point in the history
…rage

modify code coverage
  • Loading branch information
bhagemeier authored Feb 4, 2021
2 parents e26f946 + 81d32ed commit e3fea8a
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# Pending additions
- [#717] (https://github.com/helmholtz-analytics/heat/pull/717) Switch CPU CI over to Jenkins and pre-commit to GitHub action.
- [#720] (https://github.com/helmholtz-analytics/heat/pull/720) Ignore test files in codecov report and allow drops in code coverage.

## New features
- [#680](https://github.com/helmholtz-analytics/heat/pull/680) New property: larray
Expand Down
2 changes: 1 addition & 1 deletion Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ pipeline {
sh 'coverage erase report/cov/*'
}
withCredentials([string(credentialsId: 'codecov-token', variable: 'CCTOKEN')]) {
sh 'curl -s https://codecov.io/bash | bash -s -- -c -F unittests -f coverage.xml -t $CCTOKEN || echo "Codecov failed to upload"'
sh 'curl -s https://codecov.io/bash | bash -s -- -c -F unit -f coverage.xml -t $CCTOKEN || echo "Codecov failed to upload"'
}
}
}
Expand Down
20 changes: 20 additions & 0 deletions codecov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,23 @@ ignore:
- "heat/core/regression/lasso/demo.py"
- "heat/core/regression/lasso/plotfkt.py"
- "heat/examples/*"
- "heat/**/test_*.py"

coverage:
status:
project:
default:
# basic
target: auto
threshold: 5%
base: auto
flags:
- unit
paths:
- "heat"
# advanced settings
branches:
- master
if_ci_failed: error #success, failure, error, ignore
informational: false
only_pulls: false

0 comments on commit e3fea8a

Please sign in to comment.