Skip to content

Commit e3ea89c

Browse files
authored
use test.pypi.org via env variable (#1296)
Signed-off-by: guschmue <[email protected]>
1 parent 05a2a92 commit e3ea89c

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

ci_build/azure_pipelines/templates/setup.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,11 @@ steps:
1212
then
1313
pip install $(CI_PIP_ONNX_NAME) $(CI_PIP_ONNX_BACKEND_NAME) numpy --no-deps -U
1414
fi
15-
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
1620
if [[ $CI_ONNXRUNTIME_NIGHTLY == "true" ]] ;
1721
then
1822
pip uninstall -y onnxruntime

0 commit comments

Comments
 (0)