Skip to content

Commit 412f315

Browse files
Add variable to make it possible to test weekly onnx package (#1627)
Signed-off-by: Tom Wildenhain <[email protected]>
1 parent 93fe844 commit 412f315

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

ci_build/azure_pipelines/templates/setup.yml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,6 @@ steps:
1212
then
1313
pip install $(CI_PIP_ONNX_NAME) $(CI_PIP_ONNX_BACKEND_NAME) numpy --no-deps -U
1414
fi
15-
if [[ $ONNX_TEST == "true" ]] ;
16-
then
17-
pip uninstall -y onnx
18-
pip install --index-url https://test.pypi.org/simple/ onnx
19-
fi
2015
if [[ $CI_ONNXRUNTIME_NIGHTLY == "true" ]] ;
2116
then
2217
pip uninstall -y onnxruntime
@@ -49,6 +44,14 @@ steps:
4944
fi
5045
5146
python setup.py install
47+
48+
if [[ $ONNX_TEST == "true" ]] ;
49+
then
50+
# onnx-weekly won't satisfy onnx requirement so uninstallation must happen here
51+
pip uninstall -y onnx
52+
pip install --index-url https://test.pypi.org/simple/ ${PIP_ONNX_NAME:-onnx}
53+
fi
54+
5255
pip freeze --all
5356
displayName: 'Setup Environment'
5457

0 commit comments

Comments
 (0)