Skip to content
This repository was archived by the owner on Nov 17, 2023. It is now read-only.

Commit 4e109ce

Browse files
josephevansJoe Evans
andauthored
[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 a09cb33. Co-authored-by: Joe Evans <joeev@amazon.com>
1 parent f2ab4c9 commit 4e109ce

File tree

1 file changed

+11
-10
lines changed

1 file changed

+11
-10
lines changed

ci/docker/runtime_functions.sh

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1273,16 +1273,17 @@ unittest_centos7_gpu() {
12731273
}
12741274

12751275
integrationtest_ubuntu_cpu_onnx() {
1276-
set -ex
1277-
export PYTHONPATH=./python/
1278-
export MXNET_SUBGRAPH_VERBOSE=0
1279-
export DMLC_LOG_STACK_TRACE_DEPTH=10
1280-
tests/python-pytest/onnx/backend_test.py
1281-
pytest tests/python-pytest/onnx/mxnet_export_test.py
1282-
pytest tests/python-pytest/onnx/test_models.py
1283-
pytest tests/python-pytest/onnx/test_node.py
1284-
pytest tests/python-pytest/onnx/test_operators.py
1285-
pytest tests/python-pytest/onnx/test_onnxruntime.py
1276+
set -ex
1277+
export PYTHONPATH=./python/
1278+
export MXNET_SUBGRAPH_VERBOSE=0
1279+
export DMLC_LOG_STACK_TRACE_DEPTH=10
1280+
tests/python-pytest/onnx/backend_test.py
1281+
COV_ARG="--cov=./ --cov-report=xml --cov-append"
1282+
pytest $COV_ARG --verbose tests/python-pytest/onnx/mxnet_export_test.py
1283+
pytest $COV_ARG --verbose tests/python-pytest/onnx/test_models.py
1284+
pytest $COV_ARG --verbose tests/python-pytest/onnx/test_node.py
1285+
pytest $COV_ARG --verbose tests/python-pytest/onnx/test_operators.py
1286+
pytest $COV_ARG --verbose tests/python-pytest/onnx/test_onnxruntime.py
12861287
}
12871288

12881289
integrationtest_ubuntu_gpu_python() {

0 commit comments

Comments
 (0)