lightning/.codecov.yml

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

71 lines
2.2 KiB
YAML
Raw Normal View History

2019-08-06 21:24:09 +00:00
# Copyright The Lightning AI team.
2020-08-20 02:03:22 +00:00
#
# Licensed under the Apache License, Version 2.0 (the "License");
2019-08-06 21:24:09 +00:00
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
2020-08-20 02:03:22 +00:00
#
2019-08-05 20:02:05 +00:00
# http://www.apache.org/licenses/LICENSE-2.0
2020-08-20 02:03:22 +00:00
#
2019-08-05 20:02:05 +00:00
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
2019-08-05 20:02:05 +00:00
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2019-08-06 21:24:09 +00:00
# See the License for the specific language governing permissions and
# limitations under the License.
2020-08-20 02:03:22 +00:00
2019-08-19 10:35:09 +00:00
# see https://docs.codecov.io/docs/codecov-yaml
# Validation check:
# $ curl --data-binary @.codecov.yml https://codecov.io/validate
# https://docs.codecov.io/docs/codecovyml-reference
2019-08-05 20:02:05 +00:00
codecov:
bot: "codecov-io"
strict_yaml_branch: "yaml-config"
require_ci_to_pass: yes
2019-08-05 20:02:05 +00:00
notify:
after_n_builds: 23
wait_for_ci: yes
# https://docs.codecov.io/docs/codecov-yaml#section-expired-reports
max_report_age: off
2019-08-05 20:02:05 +00:00
coverage:
precision: 0 # 2 = xx.xx%, 0 = xx%
2019-08-05 20:02:05 +00:00
round: nearest # how coverage is rounded: down/up/nearest
range: 40...100 # custom range of coverage colors from red -> yellow -> green
status:
# https://codecov.readme.io/v1.0/docs/commit-status
project:
default:
2023-04-24 13:18:32 +00:00
informational: true
2019-08-06 21:24:09 +00:00
target: 99% # specify the target coverage for each commit status
threshold: 30% # allow this little decrease on project
2019-08-05 20:02:05 +00:00
# https://github.com/codecov/support/wiki/Filtering-Branches
# branches: master
if_ci_failed: error
# https://github.com/codecov/support/wiki/Patch-Status
patch:
default:
2023-04-24 13:18:32 +00:00
informational: true
target: 50% # specify the target "X%" coverage to hit
2021-10-29 07:44:05 +00:00
threshold: 5% # allow this much decrease on patch
2019-08-05 20:02:05 +00:00
changes: false
2019-08-07 16:27:52 +00:00
# https://docs.codecov.com/docs/github-checks#disabling-github-checks-patch-annotations
github_checks:
annotations: false
2019-08-05 20:02:05 +00:00
parsers:
gcov:
branch_detection:
conditional: true
loop: true
macro: false
method: false
javascript:
enable_partials: false
comment:
layout: header, diff
require_changes: false
behavior: default # update if exists else create new
after_n_builds: 23