Skip to content

Commit 26444c2

Browse files
committed
Update ubuntu version for python 3.7.
Signed-off-by: Jay Zhang <[email protected]>
1 parent e5fc2da commit 26444c2

File tree

6 files changed

+9
-5
lines changed

6 files changed

+9
-5
lines changed

.github/actions/keras_application_test/action.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,5 +72,7 @@ runs:
7272
run: |
7373
python -c "import onnxruntime"
7474
pytest tests/keras2onnx_unit_tests --doctest-modules --junitxml=junit/test-results.xml
75+
76+
export TF_USE_LEGACY_KERAS=True
7577
cd tests/keras2onnx_applications/nightly_build
7678
python run_all_v2.py

.github/actions/keras_unit_test/action.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,8 @@ runs:
3636
pip install "protobuf~=3.20"
3737
if [[ ${{ inputs.tf_version }} == 1.* ]]; then
3838
pip install numpy==1.19.0
39-
else
39+
else
40+
pip install tf_keras
4041
pip install "numpy<2"
4142
fi
4243
@@ -49,6 +50,7 @@ runs:
4950
shell: bash
5051
if: runner.os == 'Linux'
5152
run: |
53+
export TF_USE_LEGACY_KERAS=True
5254
python -c "import onnxruntime"
5355
python -c "import onnxconverter_common"
5456
pytest tests/keras2onnx_unit_tests --doctest-modules --junitxml=junit/test-results.xml

.github/workflows/keras_application_test_ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ jobs:
6666
Test_py37_with_tf1_15: # Do not change this name because it is used in Ruleset of this repo.
6767
strategy:
6868
fail-fast: false
69-
runs-on: ubuntu-latest
69+
runs-on: ubuntu-22.04
7070

7171
steps:
7272
- name: Checkout code

.github/workflows/keras_unit_test_ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ jobs:
6565
Test_py37_with_tf1_15: # Do not change this name because it is used in Ruleset of this repo.
6666
strategy:
6767
fail-fast: false
68-
runs-on: ubuntu-latest
68+
runs-on: ubuntu-22.04
6969

7070
steps:
7171
- name: Checkout code

.github/workflows/pretrained_model_test_ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ jobs:
9191
- name: 'py37-tf1.15'
9292
tf_version: '1.15.5'
9393
python_version: '3.7'
94-
os: 'ubuntu-latest'
94+
os: 'ubuntu-22.04'
9595
opset_version: '15'
9696
ort_version: '1.14.1'
9797
onnx_version: '1.14.1'

.github/workflows/unit_test_ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ jobs:
9191
- name: 'py37-tf1.15'
9292
tf_version: '1.15.5'
9393
python_version: '3.7'
94-
os: 'ubuntu-latest'
94+
os: 'ubuntu-22.04'
9595
opset_version: '15'
9696
ort_version: '1.14.1'
9797
onnx_version: '1.14.1'

0 commit comments

Comments
 (0)