Skip to content

Commit 081e295

Browse files
authored
Merge pull request #359 from nbcsm/nightly
add onnxruntime nightly test pipeline
2 parents f445505 + 485a33a commit 081e295

File tree

2 files changed

+22
-1
lines changed

2 files changed

+22
-1
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: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,18 @@ 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'
1925

2026
# TODO: remove later
21-
# Anaconda python 3.6.8 h9f7ef89_1 changed dll lookup logic, numpy failes to load dll on Windows
27+
# Anaconda python 3.6.8 h9f7ef89_1 changed dll lookup logic, numpy fails to load dll on Windows
2228
# https://github.com/numpy/numpy/issues/12957
2329
# https://github.com/ContinuumIO/anaconda-issues/issues/10629
2430
# Add numpy lib path manually here

0 commit comments

Comments
 (0)