Unverified Commit 9bba27fa authored by Yifan Xiong's avatar Yifan Xiong Committed by GitHub
Browse files

CI/CD - Fix issues in codecov (#53)

* add flags for different pipelines to merge reports
* add token for cuda pipeline
* update codecov/patch target
parent 8c527308
...@@ -23,5 +23,7 @@ steps: ...@@ -23,5 +23,7 @@ steps:
python3 setup.py test python3 setup.py test
displayName: Run unit tests displayName: Run unit tests
- script: | - script: |
bash <(curl -s https://codecov.io/bash) bash <(curl -s https://codecov.io/bash) -cF cuda-unit-test
displayName: Report coverage results displayName: Report coverage results
env:
CODECOV_TOKEN: $(codecovToken)
codecov: codecov:
require_ci_to_pass: yes require_ci_to_pass: yes
flag_management:
default_rules:
carryforward: false
paths:
- superbench/
coverage: coverage:
status: status:
project: project:
default: default:
target: 80% target: 80%
threshold: 1% threshold: 1%
flags:
- cpu-unit-test
- cuda-unit-test
branches:
- main
- dev
patch:
default:
target: 80%
threshold: 1%
flags:
- cpu-unit-test
- cuda-unit-test
branches: branches:
- main - main
- dev - dev
...@@ -28,7 +28,7 @@ steps: ...@@ -28,7 +28,7 @@ steps:
$(tag) $(tag)
- script: | - script: |
ci_env=`bash <(curl -s https://codecov.io/env)` ci_env=`bash <(curl -s https://codecov.io/env)`
docker run $ci_env --entrypoint /bin/bash $(imageName):$(tag) -c 'bash <(curl -s https://codecov.io/bash)' docker run $ci_env --entrypoint /bin/bash $(imageName):$(tag) -c 'bash <(curl -s https://codecov.io/bash) -cF cpu-unit-test'
displayName: Report coverage results displayName: Report coverage results
env: env:
CODECOV_TOKEN: $(codecovToken) CODECOV_TOKEN: $(codecovToken)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment