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:
Justin Chu
2023-10-11 13:32:39 -07:00
committed by GitHub
parent b702c4ea14
commit c2e38cb97d
4 changed files with 21 additions and 1 deletions
+9 -1
View File
@@ -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
+3
View File
@@ -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
+8
View File
@@ -0,0 +1,8 @@
coverage:
status:
project:
default:
informational: true
patch:
default:
informational: true
+1
View File
@@ -5,6 +5,7 @@ numpy==1.24.3
parameterized
protobuf==4.21.12
pytest
pytest-cov
setuptools
twine
wheel