Skip to content

Commit

Permalink
Update the way to install onnxconverter-common for nightly job failur…
Browse files Browse the repository at this point in the history
…e. (#2122)

* Install onnxconverter-common in the beginning.
* Set onnxconverter-common to latest version.

Signed-off-by: Jay Zhang <[email protected]>
  • Loading branch information
fatcat-z authored Feb 21, 2023
1 parent ff139a4 commit 82ae7c4
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ __pycache__
.eggs
*.egg-info
run.sh
node_modules/*
tests/tfhub/*/*.onnx
tests/tfhub/*/*.tar.gz
tests/tfhub/*/*.tflite
Expand Down
4 changes: 2 additions & 2 deletions ci_build/azure_pipelines/keras2onnx_application_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -105,9 +105,9 @@ jobs:
INSTALL_NUMPY:
NIGHTLY_BUILD_TEST: python run_all_v2.py

Python310-onnx1.12-tf2.9:
Python310-onnx1.13-tf2.9:
python.version: '3.10'
ONNX_PATH: onnx==1.12.0
ONNX_PATH: onnx==1.13.0
INSTALL_KERAS:
UNINSTALL_KERAS:
INSTALL_TENSORFLOW: pip install tensorflow==2.9.0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ steps:
- script: |
python -m pip install --upgrade pip
conda config --set always_yes yes --set changeps1 no
pip install onnxconverter-common
pip install $(ONNX_PATH)
pip uninstall -y protobuf
pip install "protobuf<4.21.0"
Expand All @@ -27,7 +28,6 @@ steps:
pip install coloredlogs flatbuffers
$(INSTALL_TENSORFLOW)
$(INSTALL_KERAS)
pip install git+https://github.com/microsoft/onnxconverter-common
$(INSTALL_ORT)
pip install Pillow==8.2.0
pip install opencv-python
Expand Down Expand Up @@ -87,6 +87,7 @@ steps:
call activate py$(python.version)
python -m pip install --upgrade pip numpy
echo Test numpy installation... && python -c "import numpy"
pip install onnxconverter-common
pip install %ONNX_PATH%
pip uninstall -y protobuf
pip install "protobuf<4.21.0"
Expand All @@ -96,7 +97,6 @@ steps:
pip install coloredlogs flatbuffers
%INSTALL_TENSORFLOW%
%INSTALL_KERAS%
pip install git+https://github.com/microsoft/onnxconverter-common
%INSTALL_ORT%
pip install Pillow==8.2.0
pip install opencv-python
Expand Down
4 changes: 2 additions & 2 deletions ci_build/azure_pipelines/templates/keras2onnx_unit_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ steps:
- script: |
python -m pip install --upgrade pip
conda config --set always_yes yes --set changeps1 no
pip install onnxconverter-common
pip install $(ONNX_PATH)
pip uninstall -y protobuf
pip install "protobuf<4.21.0"
Expand All @@ -30,7 +31,6 @@ steps:
then
pip install $(KERAS)
fi
pip install git+https://github.com/microsoft/onnxconverter-common
pip install -r requirements.txt
pip install -r requirements-dev.txt
pip install pytest pytest-cov pytest-runner
Expand Down Expand Up @@ -73,6 +73,7 @@ steps:
call activate py$(python.version)
python -m pip install --upgrade pip numpy
echo Test numpy installation... && python -c "import numpy"
pip install onnxconverter-common
pip install %ONNX_PATH%
pip uninstall -y protobuf
pip install "protobuf<4.21.0"
Expand All @@ -82,7 +83,6 @@ steps:
pip install coloredlogs flatbuffers
pip install %TENSORFLOW_PATH%
IF NOT "%KERAS%"=="" (pip install %KERAS%)
pip install git+https://github.com/microsoft/onnxconverter-common
pip install pytest pytest-cov pytest-runner
%INSTALL_ORT%
%INSTALL_NUMPY%
Expand Down
1 change: 0 additions & 1 deletion ci_build/azure_pipelines/unit_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -153,4 +153,3 @@ stages:
report_coverage: 'True'

- template: 'templates/combine_test_coverage.yml'

0 comments on commit 82ae7c4

Please sign in to comment.