forked from paperswithcode/ai-deadlines
-
Notifications
You must be signed in to change notification settings - Fork 23
Expand file tree
/
Copy pathcodecov.yml
More file actions
94 lines (82 loc) · 1.66 KB
/
codecov.yml
File metadata and controls
94 lines (82 loc) · 1.66 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
# Codecov configuration for Python Deadlines
coverage:
# Coverage precision
precision: 2
round: down
range: "70...90"
status:
# Overall project coverage
project:
default:
target: 75%
threshold: 2%
base: auto
if_not_found: success
if_ci_failed: error
only_pulls: false
# Frontend JavaScript coverage
frontend:
target: 75%
threshold: 2%
paths:
- "static/js/**/*.js"
flags:
- frontend
# Python utilities coverage
python:
target: 80%
threshold: 2%
paths:
- "utils/**/*.py"
flags:
- python
# Patch coverage for PRs
patch:
default:
target: 80%
threshold: 5%
base: auto
if_not_found: success
# Flags configuration
flags:
frontend:
paths:
- "static/js/**/*.js"
carryforward: true
python:
paths:
- "utils/**/*.py"
carryforward: true
e2e:
paths:
- "tests/e2e/**"
carryforward: false
# Comment configuration
comment:
layout: "reach, diff, flags, files"
behavior: default
require_changes: false
require_base: false
require_head: true
hide_project_coverage: false
# Ignore certain files
ignore:
- "**/*.min.js"
- "**/vendor/**"
- "**/node_modules/**"
- "tests/**"
- "_site/**"
- "**/__pycache__/**"
- "*.egg-info/**"
# Codecov behavior
behavior:
default_rules:
flag_coverage_not_uploaded_behavior: include
individual_flags:
- name: frontend
after_n_builds: 1
- name: python
after_n_builds: 1
# GitHub integration
github_checks:
annotations: true