Skip to content

Commit 485a33a

Browse files
committed
add onnxruntime nightly test yml
1 parent 29ea298 commit 485a33a

File tree

2 files changed

+21
-0
lines changed

2 files changed

+21
-0
lines changed
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# Test against latest onnxruntime nightly package
2+
3+
# TODO: change onnxruntime package name when nightly package is ready
4+
5+
jobs:
6+
- template: 'templates/job_generator.yml'
7+
parameters:
8+
tf_versions: ['1.12']
9+
onnx_opsets: ['9', '8', '7']
10+
onnx_backends:
11+
onnxruntime: ['']
12+
job:
13+
displayName: 'unit_test'
14+
steps:
15+
- template: 'unit_test.yml'

ci_build/azure_pipelines/templates/setup.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,12 @@ steps:
1313
pip install $(CI_PIP_ONNX_NAME) $(CI_PIP_ONNX_BACKEND_NAME) numpy --no-deps -U
1414
fi
1515
16+
# HACK: before onnxruntime nightly package is ready, install onnxruntime from pypi test
17+
if [[ $CI_ONNXRUNTIME_FROM_PYPI_TEST == "true" ]] ;
18+
then
19+
pip install --index-url https://test.pypi.org/simple/ onnxruntime --force-reinstall
20+
fi
21+
1622
python setup.py install
1723
pip freeze --all
1824
displayName: 'Setup Environment'

0 commit comments

Comments
 (0)