Skip to content

Commit 4551d2a

Browse files
facontidavideclaude
andcommitted
Fix Codecov UI showing files outside include/ and src/
Codecov's ignore directive only affects status checks, not the file tree display. Add paths restrictions via flags and coverage.status.project to limit reporting scope, and disable_search to prevent auto-discovery of extra coverage files. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent a590e6a commit 4551d2a

2 files changed

Lines changed: 17 additions & 6 deletions

File tree

.github/workflows/cmake_ubuntu.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,4 +100,6 @@ jobs:
100100
uses: codecov/codecov-action@v5
101101
with:
102102
files: coverage.info
103+
flags: unittests
104+
disable_search: true
103105
token: ${{ secrets.CODECOV_TOKEN }}

codecov.yml

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,20 @@ coverage:
33
project:
44
default:
55
target: auto
6+
paths:
7+
- "include/behaviortree_cpp/**"
8+
- "src/**"
9+
10+
flags:
11+
unittests:
12+
paths:
13+
- "include/behaviortree_cpp/**"
14+
- "src/**"
615

716
ignore:
8-
- "3rdparty/**/*"
9-
- "examples/**/*"
10-
- "include/**/contrib/**/*"
11-
- "sample_nodes/**/*"
12-
- "tests/**/*"
13-
- "tools/**/*"
17+
- "3rdparty/**"
18+
- "examples/**"
19+
- "include/**/contrib/**"
20+
- "sample_nodes/**"
21+
- "tests/**"
22+
- "tools/**"

0 commit comments

Comments
 (0)