forked from Al-does/metta
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcodecov.yml
More file actions
110 lines (97 loc) · 2.48 KB
/
codecov.yml
File metadata and controls
110 lines (97 loc) · 2.48 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
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
# Codecov configuration for Metta-AI
# Documentation: https://docs.codecov.com/docs/codecov-yaml
# Wait for all CI jobs to complete before posting results
codecov:
require_ci_to_pass: true
notify:
wait_for_ci: true
# Coverage settings
coverage:
# Round coverage to 2 decimal places
precision: 2
round: down
# Status checks configuration
status:
# Project-wide coverage
project:
default:
target: auto # Compare against base branch
threshold: 1% # Allow 1% coverage drop
informational: true # Won't fail PR, just inform
# Coverage for changed lines only
patch:
default:
informational:
target: 80% # Ideal target
threshold: 0%
informational: true # Won't fail, just shows as warning
# Pull request comment configuration
comment:
layout: "header, diff, flags, components, files"
behavior: default
require_changes: false # Post comment even if no coverage change
require_base: false # Don't require base coverage
require_head: true # Must have head coverage to post
hide_project_coverage: false # Show overall project coverage
# Flag configuration for different test suites
flags:
core:
paths:
- "!app_backend/"
- "!agent/"
- "!mettagrid/"
- "!common/"
carryforward: true
app_backend:
paths:
- app_backend/
carryforward: true
agent:
paths:
- agent/
carryforward: true
mettagrid:
paths:
- mettagrid/
carryforward: true
mettagrid_cpp:
paths:
- "**/*.cpp"
- "**/*.cc"
- "**/*.cxx"
- "**/*.c++"
- "**/*.h"
- "**/*.hpp"
- "**/*.hh"
- "**/*.hxx"
- "**/*.h++"
carryforward: true
common:
paths:
- common/
carryforward: true
# Ignore certain paths from coverage
ignore:
- "**/tests/"
- "**/test_*.py"
- "**/*_test.py"
- "**/conftest.py"
- "setup.py"
- "**/migrations/"
- "**/__pycache__/"
- "**/node_modules/"
- "**/*.pb.py" # Generated protobuf files
- "**/*.pyi" # Type stub files
- "**/fixtures/"
- "**/mocks/"
- "**/build/" # C++ build directories
- "**/cmake-build-*/" # CLion/CMake build directories
- "**/CMakeFiles/" # CMake generated files
- "**/*.o" # Object files
- "**/*.a" # Static libraries
- "**/*.so" # Shared libraries
- "**/*.dylib" # macOS dynamic libraries
- "**/*.dll" # Windows dynamic libraries
# GitHub integration settings
github_checks:
annotations: false # hide coverage annotations in PR files view