pytorch-lightning
/
.codecov.yml
70 строк · 2.2 Кб
1# Copyright The Lightning AI team.
2#
3# Licensed under the Apache License, Version 2.0 (the "License");
4# you may not use this file except in compliance with the License.
5# You may obtain a copy of the License at
6#
7# http://www.apache.org/licenses/LICENSE-2.0
8#
9# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an "AS IS" BASIS,
11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12# See the License for the specific language governing permissions and
13# limitations under the License.
14
15# see https://docs.codecov.io/docs/codecov-yaml
16# Validation check:
17# $ curl --data-binary @.codecov.yml https://codecov.io/validate
18
19# https://docs.codecov.io/docs/codecovyml-reference
20codecov:
21bot: "codecov-io"
22strict_yaml_branch: "yaml-config"
23require_ci_to_pass: yes
24notify:
25after_n_builds: 23
26wait_for_ci: yes
27# https://docs.codecov.io/docs/codecov-yaml#section-expired-reports
28max_report_age: off
29
30coverage:
31precision: 0 # 2 = xx.xx%, 0 = xx%
32round: nearest # how coverage is rounded: down/up/nearest
33range: 40...100 # custom range of coverage colors from red -> yellow -> green
34status:
35# https://codecov.readme.io/v1.0/docs/commit-status
36project:
37default:
38informational: true
39target: 99% # specify the target coverage for each commit status
40threshold: 30% # allow this little decrease on project
41# https://github.com/codecov/support/wiki/Filtering-Branches
42# branches: master
43if_ci_failed: error
44# https://github.com/codecov/support/wiki/Patch-Status
45patch:
46default:
47informational: true
48target: 50% # specify the target "X%" coverage to hit
49threshold: 5% # allow this much decrease on patch
50changes: false
51
52# https://docs.codecov.com/docs/github-checks#disabling-github-checks-patch-annotations
53github_checks:
54annotations: false
55
56parsers:
57gcov:
58branch_detection:
59conditional: true
60loop: true
61macro: false
62method: false
63javascript:
64enable_partials: false
65
66comment:
67layout: header, diff
68require_changes: false
69behavior: default # update if exists else create new
70after_n_builds: 23
71