Skip to content

Commit c1cc37b

Browse files
committed
ci
Signed-off-by: xadupre <[email protected]>
1 parent 177b3de commit c1cc37b

File tree

6 files changed

+70
-25
lines changed

6 files changed

+70
-25
lines changed

.github/workflows/keras_application_test_ci.yml

Lines changed: 24 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ jobs:
2929
with:
3030
tf_version: '2.9.0'
3131
python_version: '3.8'
32-
ort_version: '1.20.1'
33-
onnx_version: '1.17.0'
32+
ort_version: '1.16.3'
33+
onnx_version: '1.16.1'
3434

3535
- name: Upload Test Results
3636
if: always()
@@ -94,16 +94,36 @@ jobs:
9494
name:
9595
- 'py38-tf2.13'
9696
- 'py39-tf2.15'
97+
- 'py310-tf2.18'
98+
- 'py311-tf2.18'
99+
- 'py312-tf2.18'
97100
os: ['ubuntu-latest', 'windows-2022']
98-
ort_version: ['1.20.1']
99-
onnx_version: ['1.17.0']
100101
include:
101102
- name: 'py38-tf2.13'
102103
tf_version: '2.13.0'
103104
python_version: '3.8'
105+
ort_version: '1.16.3'
106+
onnx_version: '1.16.1'
104107
- name: 'py39-tf2.15'
105108
tf_version: '2.15.0'
106109
python_version: '3.9'
110+
ort_version: '1.16.3'
111+
onnx_version: '1.16.1'
112+
- name: 'py310-tf2.18'
113+
tf_version: '2.18.0'
114+
python_version: '3.10'
115+
ort_version: '1.20.1'
116+
onnx_version: '1.17.0'
117+
- name: 'py311-tf2.18'
118+
tf_version: '2.18.0'
119+
python_version: '3.11'
120+
ort_version: '1.20.1'
121+
onnx_version: '1.17.0'
122+
- name: 'py312-tf2.18'
123+
tf_version: '2.18.0'
124+
python_version: '3.12'
125+
ort_version: '1.20.1'
126+
onnx_version: '1.17.0'
107127
runs-on: ${{ matrix.os }}
108128

109129
steps:

.github/workflows/keras_unit_test_ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ jobs:
2828
with:
2929
tf_version: '2.9.0'
3030
python_version: '3.8'
31-
ort_version: '1.20.1'
32-
onnx_version: '1.17.0'
31+
ort_version: '1.16.3'
32+
onnx_version: '1.16.1'
3333

3434
- name: Upload Test Results
3535
if: always()

.github/workflows/pretrained_model_test_ci.yml

Lines changed: 24 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ jobs:
3030
os: 'ubuntu-latest'
3131
tf_version: '2.9.0'
3232
python_version: '3.8'
33-
ort_version: '1.20.1'
34-
onnx_version: '1.17.0'
33+
ort_version: '1.16.3'
34+
onnx_version: '1.16.1'
3535
opset_version: '18'
3636
skip_tflite: 'False'
3737

@@ -129,18 +129,38 @@ jobs:
129129
name:
130130
- 'py38-tf2.13'
131131
- 'py39-tf2.15'
132+
- 'py310-tf2.18'
133+
- 'py311-tf2.18'
134+
- 'py312-tf2.18'
132135
os: ['ubuntu-latest', 'windows-2022']
133136
opset_version: ['18', '15']
134-
ort_version: ['1.20.1']
135-
onnx_version: ['1.17.0']
136137
skip_tflite: ['False']
137138
include:
138139
- name: 'py38-tf2.13'
139140
tf_version: '2.13.0'
140141
python_version: '3.8'
142+
ort_version: '1.16.3'
143+
onnx_version: '1.16.1'
141144
- name: 'py39-tf2.15'
142145
tf_version: '2.15.0'
143146
python_version: '3.9'
147+
ort_version: '1.16.3'
148+
onnx_version: '1.16.1'
149+
- name: 'py310-tf2.18'
150+
tf_version: '2.18.0'
151+
python_version: '3.10'
152+
ort_version: '1.20.1'
153+
onnx_version: '1.17.0'
154+
- name: 'py311-tf2.18'
155+
tf_version: '2.18.0'
156+
python_version: '3.11'
157+
ort_version: '1.20.1'
158+
onnx_version: '1.17.0'
159+
- name: 'py312-tf2.18'
160+
tf_version: '2.18.0'
161+
python_version: '3.12'
162+
ort_version: '1.20.1'
163+
onnx_version: '1.17.0'
144164
runs-on: ${{ matrix.os }}
145165

146166
steps:

.github/workflows/pylint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
python-version: 3.11
2222

2323
- name: Install dependencies
24-
run: pip install pylint==2.4.4
24+
run: pip install pylint
2525

2626
- name: Run pylint
2727
run: |

.github/workflows/unit_test_ci.yml

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ jobs:
3030
os: 'ubuntu-latest'
3131
tf_version: '2.9.0'
3232
python_version: '3.8'
33-
ort_version: '1.20.1'
34-
onnx_version: '1.17.0'
33+
ort_version: '1.16.3'
34+
onnx_version: '1.16.1'
3535
opset_version: '18'
3636
skip_tflite: 'False'
3737

@@ -135,25 +135,33 @@ jobs:
135135
- 'py312-tf2.18'
136136
os: ['ubuntu-latest', 'windows-2022']
137137
opset_version: ['18', '15']
138-
ort_version: ['1.20.1']
139-
onnx_version: ['1.17.0']
140138
skip_tflite: ['False']
141139
include:
142140
- name: 'py312-tf2.18'
143141
tf_version: '2.18.0'
144142
python_version: '3.12'
143+
ort_version: '1.20.1'
144+
onnx_version: '1.17.0'
145145
- name: 'py311-tf2.18'
146146
tf_version: '2.18.0'
147147
python_version: '3.11'
148+
ort_version: '1.20.1'
149+
onnx_version: '1.17.0'
148150
- name: 'py310-tf2.18'
149151
tf_version: '2.18.0'
150152
python_version: '3.10'
153+
ort_version: '1.20.1'
154+
onnx_version: '1.17.0'
151155
- name: 'py38-tf2.13'
152156
tf_version: '2.13.0'
153157
python_version: '3.8'
158+
ort_version: '1.16.3'
159+
onnx_version: '1.16.1'
154160
- name: 'py39-tf2.15'
155161
tf_version: '2.15.0'
156162
python_version: '3.9'
163+
ort_version: '1.16.3'
164+
onnx_version: '1.16.1'
157165
- name: 'py37-tf1.15'
158166
tf_version: '1.15.5'
159167
python_version: '3.7'

tests/utils/setup_test_env.sh

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -16,17 +16,14 @@ echo "==== ONNXRuntime version: $ORT_VERSION"
1616
echo "==== ONNX version: $ONNX_VERSION"
1717

1818
pip install pytest pytest-cov pytest-runner coverage graphviz requests pyyaml pillow pandas parameterized sympy coloredlogs flatbuffers timeout-decorator
19-
pip install onnx==$ONNX_VERSION
20-
pip install onnxruntime==$ORT_VERSION
21-
pip install "numpy<2"
22-
23-
pip install onnxruntime-extensions
24-
pip install "tensorflow-text<=$TF_VERSION"
25-
2619
pip uninstall -y tensorflow
27-
pip install tensorflow==$TF_VERSION
28-
pip uninstall -y protobuf
29-
pip install "protobuf~=3.20"
20+
pip install onnx==$ONNX_VERSION onnxruntime==$ORT_VERSION onnxruntime-extensions "tensorflow-text<=$TF_VERSION" tensorflow==$TF_VERSION
21+
22+
if [[ $TF_VERSION == 1.* ]]; then
23+
pip install numpy==1.19.0
24+
else
25+
pip install tf_keras==$TF_VERSION
26+
fi
3027

3128
python setup.py install
3229

0 commit comments

Comments
 (0)