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:
python3 setup.py test
displayName: Run unit tests
- script: |
bash <(curl -s https://codecov.io/bash)
bash <(curl -s https://codecov.io/bash) -cF cuda-unit-test
displayName: Report coverage results
env:
CODECOV_TOKEN: $(codecovToken)
codecov:
require_ci_to_pass: yes
flag_management:
default_rules:
carryforward: false
paths:
- superbench/
coverage:
status:
project:
default:
target: 80%
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:
- main
- dev
......@@ -28,7 +28,7 @@ steps:
$(tag)
- script: |
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
env:
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