Skip to content

Add variable to make it possible to test weekly onnx package #1627

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jul 27, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 8 additions & 5 deletions ci_build/azure_pipelines/templates/setup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,6 @@ steps:
then
pip install $(CI_PIP_ONNX_NAME) $(CI_PIP_ONNX_BACKEND_NAME) numpy --no-deps -U
fi
if [[ $ONNX_TEST == "true" ]] ;
then
pip uninstall -y onnx
pip install --index-url https://test.pypi.org/simple/ onnx
fi
if [[ $CI_ONNXRUNTIME_NIGHTLY == "true" ]] ;
then
pip uninstall -y onnxruntime
Expand Down Expand Up @@ -49,6 +44,14 @@ steps:
fi

python setup.py install

if [[ $ONNX_TEST == "true" ]] ;
then
# onnx-weekly won't satisfy onnx requirement so uninstallation must happen here
pip uninstall -y onnx
pip install --index-url https://test.pypi.org/simple/ ${PIP_ONNX_NAME:-onnx}
fi

pip freeze --all
displayName: 'Setup Environment'

Expand Down