Report coverage to codecov (#5660)
Use the codecov uploader in azure pipelines to report coverage to codecov --------- Signed-off-by: Justin Chu <justinchu@microsoft.com>
This commit is contained in:
@@ -81,7 +81,7 @@ jobs:
|
||||
- script: |
|
||||
source venv/bin/activate
|
||||
|
||||
pytest -sv
|
||||
pytest -sv --cov=onnx --cov-report=xml --cov-append --cov-branch --junit-xml pytest.xml
|
||||
if [ $? -ne 0 ]; then
|
||||
echo "pytest failed"
|
||||
exit 1
|
||||
@@ -97,6 +97,14 @@ jobs:
|
||||
|
||||
displayName: 'Run ONNX tests'
|
||||
|
||||
- script: |
|
||||
curl -Os https://uploader.codecov.io/latest/linux/codecov
|
||||
chmod +x codecov
|
||||
./codecov
|
||||
|
||||
continueOnError: true
|
||||
displayName: 'Upload to codecov'
|
||||
|
||||
- script: |
|
||||
source venv/bin/activate
|
||||
python onnx/backend/test/cmd_tools.py generate-data --clean
|
||||
|
||||
@@ -13,6 +13,9 @@ Files: .azure-pipelines/*.yml
|
||||
COPYRIGHT: Copyright (c) ONNX Project Contributors
|
||||
License: Apache-2.0
|
||||
|
||||
Files: codecov.yml
|
||||
COPYRIGHT: Copyright (c) ONNX Project Contributors
|
||||
License: Apache-2.0
|
||||
|
||||
Files: .github/**/*.md .github/pull_request_template.md
|
||||
COPYRIGHT: Copyright (c) ONNX Project Contributors
|
||||
|
||||
@@ -0,0 +1,8 @@
|
||||
coverage:
|
||||
status:
|
||||
project:
|
||||
default:
|
||||
informational: true
|
||||
patch:
|
||||
default:
|
||||
informational: true
|
||||
@@ -5,6 +5,7 @@ numpy==1.24.3
|
||||
parameterized
|
||||
protobuf==4.21.12
|
||||
pytest
|
||||
pytest-cov
|
||||
setuptools
|
||||
twine
|
||||
wheel
|
||||
|
||||
Reference in New Issue
Block a user