Enable Model Zoo in OpenVINO-ONNX CI (#1660)
This commit is contained in:
1 parent
0be11a462f
commit
0721761492
4 files changed
+20
-9
No files matched your search
@@ -81,4 +81,4 @@ ENV LD_LIBRARY_PATH=/openvino/dist/lib
|
||||
ENV NGRAPH_ONNX_IMPORT_ENABLE=TRUE
|
||||
ENV PYTHONPATH=/openvino/bin/intel64/Release/lib/python_api/python3.8:${PYTHONPATH}
|
||||
RUN git clone --recursive https://github.com/pybind/pybind11.git
|
||||
RUN tox
|
||||
CMD tox
|
||||
Vendored
+17
-3
@@ -1,7 +1,9 @@
|
||||
|
||||
// Copyright (C) 2018-2020 Intel Corporation
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
DOCKER_CONTAINER_NAME= "openvino-onnx-ci-container"
|
||||
DOCKER_IMAGE_TAG = "openvino-onnx-ci-image"
|
||||
|
||||
def getGitPrInfo(String project) {
|
||||
def gitPrInfo = [
|
||||
prAuthorEmail : "",
|
||||
@@ -58,12 +60,19 @@ def gitSubmoduleUpdate(String repository_name) {
|
||||
|
||||
def buildDockerImage() {
|
||||
sh """
|
||||
docker build --tag=openvino-onnx-ci --file=.ci/openvino-onnx/Dockerfile \
|
||||
docker build --tag=${DOCKER_IMAGE_TAG} --file=.ci/openvino-onnx/Dockerfile \
|
||||
--build-arg http_proxy=http://proxy-chain.intel.com:911/ \
|
||||
--build-arg https_proxy=http://proxy-chain.intel.com:912/ .
|
||||
"""
|
||||
}
|
||||
|
||||
def runTests() {
|
||||
sh """
|
||||
docker run --rm --name ${DOCKER_CONTAINER_NAME} \
|
||||
--volume ${HOME}/ONNX_CI/onnx_models/.onnx:/root/.onnx ${DOCKER_IMAGE_TAG}
|
||||
"""
|
||||
}
|
||||
|
||||
pipeline {
|
||||
agent {
|
||||
label "OpenVino"
|
||||
@@ -84,13 +93,18 @@ pipeline {
|
||||
gitSubmoduleUpdate(PROJECT_NAME)
|
||||
}
|
||||
}
|
||||
stage("Run tests") {
|
||||
stage("Prepare Docker environment") {
|
||||
steps{
|
||||
dir("${WORKDIR}") {
|
||||
buildDockerImage()
|
||||
}
|
||||
}
|
||||
}
|
||||
stage("Run tests") {
|
||||
steps{
|
||||
runTests()
|
||||
}
|
||||
}
|
||||
}
|
||||
post {
|
||||
failure {
|
||||
|
||||
@@ -592,16 +592,12 @@ test_cases_list = [
|
||||
test_cases.test_rain_princess_opset9_cpu,
|
||||
test_cases.test_ssd_opset10_cpu,
|
||||
test_cases.test_resnet152_v2_opset7_cpu,
|
||||
test_cases.test_resnet50_v2_opset7_cpu,
|
||||
test_cases.test_resnet18_v1_opset7_cpu,
|
||||
test_cases.test_resnet18_v2_opset7_cpu,
|
||||
test_cases.test_resnet34_v1_opset7_cpu,
|
||||
test_cases.test_resnet34_v2_opset7_cpu,
|
||||
test_cases.test_resnet101_v2_opset7_cpu,
|
||||
test_cases.test_resnet101_v1_opset7_cpu,
|
||||
test_cases.test_ResNet101_DUC_opset7_cpu,
|
||||
test_cases.test_arcfaceresnet100_opset8_cpu,
|
||||
test_cases.test_mobilenetv2_opset7_cpu,
|
||||
test_cases.test_candy_opset8_cpu,
|
||||
test_cases.test_resnet152_v1_opset7_cpu
|
||||
]
|
||||
|
||||
@@ -9,6 +9,7 @@ deps =
|
||||
-rrequirements_test.txt
|
||||
mypy
|
||||
flake8-bugbear
|
||||
pytest-xdist
|
||||
setenv =
|
||||
NGRAPH_CPP_BUILD_PATH = {env:NGRAPH_CPP_BUILD_PATH:{homedir}/ngraph_dist}
|
||||
NGRAPH_ONNX_IMPORT_ENABLE = {env:NGRAPH_ONNX_IMPORT_ENABLE:"FALSE"}
|
||||
@@ -26,7 +27,7 @@ commands=
|
||||
flake8 {posargs:src/ setup.py}
|
||||
flake8 --ignore=D100,D101,D102,D103,D104,D105,D107,W503 tests/ # ignore lack of docs in tests
|
||||
mypy --config-file=tox.ini {posargs:src/}
|
||||
pytest --backend={env:NGRAPH_BACKEND} tests/test_ngraph tests/test_onnx -v -k 'not test_zoo_models.py'
|
||||
pytest --backend={env:NGRAPH_BACKEND} tests -v -n 20
|
||||
|
||||
[testenv:devenv]
|
||||
envdir = devenv
|
||||
|
||||
Reference in new issue
Block a user