forked from esheldon/metadetect
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3 from lsst-dm/tickets/DM-42534
DM-42534: Upload coverage report to Codecov
- Loading branch information
Showing
4 changed files
with
35 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# Any changes to this file should be validated before pushing. | ||
# curl --data-binary @.github/.codecov.yml https://codecov.io/validate | ||
codecov: | ||
require_ci_to_pass: false | ||
|
||
coverage: | ||
precision: 2 | ||
round: down | ||
range: 65...85 | ||
# Coverage below 65% is flagged red, and above 85% is green. | ||
|
||
status: | ||
project: | ||
default: | ||
# Each PR must increase the coverage, but allow a slippage of 10%. | ||
target: auto | ||
threshold: 10% | ||
|
||
comment: false # Turn on/off Codecov commenting on the PRs. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
[tool.coverage.report] | ||
exclude_lines = [ | ||
"pragma: no cover", | ||
"raise AssertionError", | ||
"raise NotImplementedError", | ||
"if __name__ == .__main__.:", | ||
"if TYPE_CHECKING:", | ||
] | ||
|