From 25eba7524658bee88c5643f25baebb9bf5e9a5b3 Mon Sep 17 00:00:00 2001 From: Chun-Wei Chen Date: Mon, 29 Mar 2021 15:35:57 -0700 Subject: [PATCH] Fix CI Python 3.6 failing due to .ipynb (#3367) * fix ipython version Signed-off-by: Chun-Wei Chen * use 7.16.1 instead Signed-off-by: Chun-Wei Chen --- .azure-pipelines/Linux-CI.yml | 3 ++- .azure-pipelines/MacOS-CI.yml | 3 ++- .azure-pipelines/Windows-CI.yml | 3 ++- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/.azure-pipelines/Linux-CI.yml b/.azure-pipelines/Linux-CI.yml index 3814df1a5e9..69f84993f04 100644 --- a/.azure-pipelines/Linux-CI.yml +++ b/.azure-pipelines/Linux-CI.yml @@ -102,7 +102,8 @@ jobs: # onnx python api tests # pytest 6.0 made deprecation warnings fail by default, pinning pytest to 5.4.3. # TODO replace deprecated function with the suggested one. https://docs.pytest.org/en/stable/deprecations.html#id5 - python -m pip install --quiet pytest==5.4.3 nbval + # TODO Remove fixed ipython 7.16.1 once ONNX remove Python 3.6 + python -m pip install --quiet pytest==5.4.3 nbval ipython==7.16.1 pytest if [ $? -ne 0 ]; then diff --git a/.azure-pipelines/MacOS-CI.yml b/.azure-pipelines/MacOS-CI.yml index 825ec180168..be79c3ea748 100644 --- a/.azure-pipelines/MacOS-CI.yml +++ b/.azure-pipelines/MacOS-CI.yml @@ -82,7 +82,8 @@ jobs: # onnx python api tests # pytest 6.0 made deprecation warnings fail by default, pinning pytest to 5.4.3. # TODO replace deprecated function with the suggested one. https://docs.pytest.org/en/stable/deprecations.html#id5 - pip install --quiet pytest==5.4.3 nbval + # TODO Remove fixed ipython 7.16.1 once ONNX has removed Python 3.6 + pip install --quiet pytest==5.4.3 nbval ipython==7.16.1 pytest if [ $? -ne 0 ]; then diff --git a/.azure-pipelines/Windows-CI.yml b/.azure-pipelines/Windows-CI.yml index 1153aa2a0a2..0a4e3279edf 100644 --- a/.azure-pipelines/Windows-CI.yml +++ b/.azure-pipelines/Windows-CI.yml @@ -43,7 +43,8 @@ jobs: python -m pip install --upgrade pip # pytest 6.0 made deprecation warnings fail by default, pinning pytest to 5.4.3. # TODO replace deprecated function with the suggested one. https://docs.pytest.org/en/stable/deprecations.html#id5 - python -m pip install --quiet pytest==5.4.3 nbval numpy + # TODO Remove fixed ipython 7.16.1 once ONNX has removed Python 3.6 + python -m pip install --quiet pytest==5.4.3 nbval numpy ipython==7.16.1 git submodule update --init --recursive set ONNX_BUILD_TESTS=1