add coverage flags

This commit is contained in:
Changho Hwang
2026-02-20 14:03:54 -08:00
parent caeec7590a
commit b9609f83a0
2 changed files with 25 additions and 1 deletions

View File

@@ -169,7 +169,7 @@ steps:
set -e
curl -Os https://cli.codecov.io/latest/linux/codecov
chmod +x codecov
./codecov upload-process --disable-search -t $(CODECOV_TOKEN) -f coverage.info
./codecov upload-process --disable-search -t $(CODECOV_TOKEN) -f coverage.info --flag ${{ parameters.platform }}-${{ parameters.gpuArch }}
workingDirectory: '$(System.DefaultWorkingDirectory)'
- task: Bash@3

24
.codecov.yml Normal file
View File

@@ -0,0 +1,24 @@
codecov:
require_ci_to_pass: yes
coverage:
status:
project:
default:
target: 68%
threshold: 1%
patch:
default:
target: 80%
flag_management:
default_rules:
carryforward: true
ignore:
- "test/"
- "examples/"
- "python/"
- "tools/"
- "docs/"
- "docker/"