Skip to content
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

Fix nightly CI #188

Merged
merged 1 commit into from
Jun 9, 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
20 changes: 10 additions & 10 deletions .azure-pipelines/nightly-CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,11 @@

jobs:

- job: 'linux_conda_CI_nightly'
- job: 'Linux'
pool:
vmImage: 'Ubuntu-16.04'
strategy:
matrix:
Python35:
python.version: '3.5'
ONNX_PATH: onnx==1.3.0

Python36:
python.version: '3.6'
ONNX_PATH: onnx==1.5.0
Expand Down Expand Up @@ -48,6 +44,10 @@ jobs:
conda install -c conda-forge protobuf
conda install -c conda-forge numpy
pip install -r requirements.txt
# install ORT dependencies
pip install onnxruntime
# replace with ort-nightly
pip uninstall onnxruntime
pip install --index-url https://test.pypi.org/simple/ ort-nightly
pip install $(ONNX_PATH)
pip install pytest
Expand All @@ -70,15 +70,11 @@ jobs:
testRunTitle: 'Python $(python.version)'
condition: succeededOrFailed()

- job: 'win32_conda_CI_nightly'
- job: 'Win32'
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why does it have to be short?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes it easier to view the whole name in the narrow Azure Pipelines side panel and see the Python version

pool:
vmImage: 'vs2017-win2016'
strategy:
matrix:
Python35:
python.version: '3.5'
ONNX_PATH: onnx==1.3.0

Python36:
python.version: '3.6'
ONNX_PATH: onnx==1.5.0
Expand Down Expand Up @@ -114,6 +110,10 @@ jobs:
python -m pip install --upgrade pip numpy
echo Test numpy installation... && python -c "import numpy"
pip install -r requirements.txt
# install ORT dependencies
pip install onnxruntime
# replace with ort-nightly
pip uninstall onnxruntime
pip install --index-url https://test.pypi.org/simple/ ort-nightly
Copy link
Member

@wenbingl wenbingl Jun 9, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

with -U, then you don't need to uninstall the onnxruntime

pip install %ONNX_PATH%
pip install pytest
Expand Down