Skip to content

Commit ff6bdb6

Browse files
authored
Configure codecov to ignore tests folder (#362)
* Configure codecov to ignore tests folder * Use codecov token to avoid rate limiting * Decrease coverage target for now
1 parent 7a35bd4 commit ff6bdb6

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

.github/codecov.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
coverage:
2+
status:
3+
project:
4+
default:
5+
target: 75
6+
threshold: 0.1
7+
patch:
8+
default:
9+
target: 75
10+
comment:
11+
layout: "diff, files"
12+
behavior: default
13+
require_changes: true # if true: only post the comment if coverage changes
14+
branches: # branch names that can post comment
15+
- "main"
16+
ignore:
17+
- "virtualizarr/tests" # ignore folders and all its contents

.github/workflows/main.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,3 +58,4 @@ jobs:
5858
env_vars: OS,PYTHON
5959
name: codecov-umbrella
6060
fail_ci_if_error: false
61+
token: ${{ secrets.CODECOV_TOKEN }}

0 commit comments

Comments
 (0)