You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mxnet.apache.org by zh...@apache.org on 2020/12/17 05:23:19 UTC
[incubator-mxnet] branch v1.x updated: [v1.x] Add coverage to onnx
test pipeline. (#19682)
This is an automated email from the ASF dual-hosted git repository.
zha0q1 pushed a commit to branch v1.x
in repository https://gitbox.apache.org/repos/asf/incubator-mxnet.git
The following commit(s) were added to refs/heads/v1.x by this push:
new 4e109ce [v1.x] Add coverage to onnx test pipeline. (#19682)
4e109ce is described below
commit 4e109ce855143e74479ee1063d3cc2b48b9cf88d
Author: Joe Evans <jo...@gmail.com>
AuthorDate: Wed Dec 16 21:21:36 2020 -0800
[v1.x] Add coverage to onnx test pipeline. (#19682)
* Add coverage to onnx test pipeline.
* Install coveragepy for onnx test suite.
* Export coverage report to xml format so codecov picks it up.
* Revert "Install coveragepy for onnx test suite."
This reverts commit a09cb331f0d965a8ea1af1d5ddc4cdc62b280af0.
Co-authored-by: Joe Evans <jo...@amazon.com>
---
ci/docker/runtime_functions.sh | 21 +++++++++++----------
1 file changed, 11 insertions(+), 10 deletions(-)
diff --git a/ci/docker/runtime_functions.sh b/ci/docker/runtime_functions.sh
index c387236..cabe853 100755
--- a/ci/docker/runtime_functions.sh
+++ b/ci/docker/runtime_functions.sh
@@ -1273,16 +1273,17 @@ unittest_centos7_gpu() {
}
integrationtest_ubuntu_cpu_onnx() {
- set -ex
- export PYTHONPATH=./python/
- export MXNET_SUBGRAPH_VERBOSE=0
- export DMLC_LOG_STACK_TRACE_DEPTH=10
- tests/python-pytest/onnx/backend_test.py
- pytest tests/python-pytest/onnx/mxnet_export_test.py
- pytest tests/python-pytest/onnx/test_models.py
- pytest tests/python-pytest/onnx/test_node.py
- pytest tests/python-pytest/onnx/test_operators.py
- pytest tests/python-pytest/onnx/test_onnxruntime.py
+ set -ex
+ export PYTHONPATH=./python/
+ export MXNET_SUBGRAPH_VERBOSE=0
+ export DMLC_LOG_STACK_TRACE_DEPTH=10
+ tests/python-pytest/onnx/backend_test.py
+ COV_ARG="--cov=./ --cov-report=xml --cov-append"
+ pytest $COV_ARG --verbose tests/python-pytest/onnx/mxnet_export_test.py
+ pytest $COV_ARG --verbose tests/python-pytest/onnx/test_models.py
+ pytest $COV_ARG --verbose tests/python-pytest/onnx/test_node.py
+ pytest $COV_ARG --verbose tests/python-pytest/onnx/test_operators.py
+ pytest $COV_ARG --verbose tests/python-pytest/onnx/test_onnxruntime.py
}
integrationtest_ubuntu_gpu_python() {