diff --git a/.azure-pipelines/templates/ut.yaml b/.azure-pipelines/templates/ut.yaml index a0fb1e4d..e6e989e7 100644 --- a/.azure-pipelines/templates/ut.yaml +++ b/.azure-pipelines/templates/ut.yaml @@ -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 diff --git a/.codecov.yml b/.codecov.yml new file mode 100644 index 00000000..a98f1e89 --- /dev/null +++ b/.codecov.yml @@ -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/"