-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[MRG] Separate Lint and Tests + codecov configuration (#135)
* separate Lint and tests * try again * Introduce linting error * test pre-commit * ignoe coddecov.yaml --------- Co-authored-by: Oleksii Kachaiev <kachayev@gmail.com>
- Loading branch information
Showing
3 changed files
with
80 additions
and
5 deletions.
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
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,46 @@ | ||
# Docs ref: https://docs.codecov.io/docs/codecovyml-reference | ||
# Validation check: $ curl --data-binary @codecov.yml https://codecov.io/validate | ||
|
||
|
||
codecov: | ||
bot: "codecov-io" | ||
strict_yaml_branch: "yaml-config" | ||
require_ci_to_pass: yes | ||
notify: | ||
wait_for_ci: yes | ||
|
||
coverage: | ||
precision: 2 | ||
round: down | ||
range: "90...100" | ||
status: | ||
project: | ||
default: | ||
base: auto # target to compare against | ||
target: auto # target "X%" coverage to hit on project | ||
threshold: 0.5% # allow this much decrease from base | ||
if_ci_failed: error | ||
patch: | ||
default: | ||
base: auto # target to compare against | ||
target: 50% # target "X%" coverage to hit on patch | ||
# threshold: 50% # allow this much decrease on patch | ||
changes: false | ||
|
||
parsers: | ||
gcov: | ||
branch_detection: | ||
conditional: yes | ||
loop: yes | ||
method: no | ||
macro: no | ||
|
||
# https://docs.codecov.io/docs/ignoring-paths | ||
# ignore: | ||
# - "ot/helpers/openmp_helpers.py" | ||
|
||
# https://docs.codecov.io/docs/pull-request-comments | ||
comment: | ||
layout: header, diff, sunburst, uncovered | ||
behavior: default | ||
require_changes: true # if true: only post the comment if coverage changes |