@@ -14,99 +14,96 @@ concurrency:
14
14
cancel-in-progress : true
15
15
16
16
jobs :
17
- run_tests :
17
+ Test_min_py_with_min_tf : # Do not change this name because it is used in Ruleset of this repo.
18
+ strategy :
19
+ fail-fast : false
20
+ runs-on : ubuntu-latest
21
+
22
+ steps :
23
+ - name : Checkout code
24
+ uses : actions/checkout@v4
25
+
26
+ - name : Run Tests (Py38-TF2.9)
27
+ uses : ./.github/actions/keras_application_test
28
+ with :
29
+ tf_version : ' 2.9.0'
30
+ python_version : ' 3.8'
31
+ ort_version : ' 1.16.3'
32
+ onnx_version : ' 1.16.1'
33
+
34
+ - name : Upload Test Results
35
+ if : always()
36
+ uses : actions/upload-artifact@v3
37
+ with :
38
+ name : Test Results (Py38-TF2.9-ubuntu)
39
+ path : ./**/test-results-*.xml
40
+
41
+ Test_max_py_with_latest_tf : # Do not change this name because it is used in Ruleset of this repo.
42
+ strategy :
43
+ fail-fast : false
44
+ runs-on : ubuntu-latest
45
+
46
+ steps :
47
+ - name : Checkout code
48
+ uses : actions/checkout@v4
49
+
50
+ - name : Run Tests (Py310-TF2.15)
51
+ uses : ./.github/actions/keras_application_test
52
+ with :
53
+ tf_version : ' 2.15.0'
54
+ python_version : ' 3.10'
55
+ ort_version : ' 1.16.3'
56
+ onnx_version : ' 1.16.1'
57
+
58
+ - name : Upload Test Results
59
+ if : always()
60
+ uses : actions/upload-artifact@v3
61
+ with :
62
+ name : Test Results (Py310-TF2.15-ubuntu)
63
+ path : ./**/test-results-*.xml
64
+
65
+ Extra_tests :
18
66
strategy :
19
67
fail-fast : false
20
68
matrix :
21
69
name :
22
- - ' py38-tf2.9'
23
70
- ' py39-tf2.10'
24
71
- ' py39-tf2.15'
25
72
os : ['ubuntu-latest', 'windows-2022']
26
- opset_version : ['18', '15']
27
73
ort_version : ['1.16.3']
28
74
onnx_version : ['1.16.1']
29
75
include :
30
- - name : ' py38-tf2.9'
31
- tf_version : ' 2.9.0'
32
- python_version : ' 3.8'
33
76
- name : ' py39-tf2.10'
34
77
tf_version : ' 2.10.0'
35
78
python_version : ' 3.9'
36
79
- name : ' py39-tf2.15'
37
80
tf_version : ' 2.15.0'
38
81
python_version : ' 3.9'
39
-
40
82
runs-on : ${{ matrix.os }}
41
83
42
84
steps :
43
- - name : Set up Python (${{ matrix.python_version }})
44
- uses : actions/setup-python@v5
45
- with :
46
- python-version : ${{ matrix.python_version }}
47
-
48
85
- name : Checkout code
49
86
uses : actions/checkout@v4
50
87
51
- - name : Install dependencies (TF-v${{ matrix.tf_version }})
52
- shell : bash
53
- run : |
54
- python -m pip install --upgrade pip
55
- pip install onnxconverter-common
56
- pip install onnx==${{ matrix.onnx_version }}
57
- pip uninstall -y protobuf
58
- pip install "protobuf~=3.20"
59
- pip install h5py==3.7.0
60
- pip install parameterized
61
- pip install timeout-decorator
62
- pip install coloredlogs flatbuffers
63
- pip install tensorflow==${{ matrix.tf_version }}
64
- pip install onnxruntime==${{ matrix.ort_version }}
65
- pip install Pillow==8.2.0
66
- pip install opencv-python
67
- pip install tqdm
68
- pip install keras-segmentation==0.2.0
69
- git clone https://github.com/matterport/Mask_RCNN
70
- cd Mask_RCNN
71
- pip install -r requirements.txt
72
- python setup.py install
73
- cd ..
74
- pip install matplotlib
75
- git clone https://github.com/qqwweee/keras-yolo3
76
- pip install keras-resnet
77
- pip install git+https://www.github.com/keras-team/keras-contrib.git
78
- pip install keras-tcn==2.8.3
79
- pip install git+https://github.com/qubvel/efficientnet
80
- pip install transformers==4.2.0
81
- pip install keras-self-attention
82
- pip install pytest pytest-cov pytest-runner
83
- pip install "numpy<2"
84
-
85
- pip install -e .
86
-
87
- echo "----- List all of depdencies:"
88
- pip freeze --all
89
-
90
- - name : Run keras application tests (${{ matrix.os }})
91
- run : |
92
- python -c "import onnxruntime"
93
- pytest tests/keras2onnx_unit_tests --doctest-modules --junitxml=junit/test-results.xml
94
- cd tests/keras2onnx_applications/nightly_build
95
- python run_all_v2.py
96
-
88
+ - name : Run Tests (Py${{ matrix.python_version }}_TF${{ matrix.tf_version }}_${{ matrix.os }}_${{ matrix.ort_version }})
89
+ uses : ./.github/actions/keras_application_test
90
+ with :
91
+ tf_version : ${{ matrix.tf_version }}
92
+ python_version : ${{ matrix.python_version }}
93
+ ort_version : ${{ matrix.ort_version }}
94
+ onnx_version : ${{ matrix.onnx_version }}
97
95
- name : Upload Test Results
98
96
if : always()
99
97
uses : actions/upload-artifact@v3
100
98
with :
101
- name : Test Results (${{ matrix.tf_version }}-${{ matrix.python_version }}-${{ matrix.os }})
99
+ name : Test Results (${{ matrix.python_version }}-${{ matrix.tf_version }}-${{ matrix.os }})
102
100
path : ./**/test-results*.xml
103
101
104
102
run_tests_tf_15 :
105
103
strategy :
106
104
matrix :
107
105
tf_version : ['1.15.0']
108
106
python_version : ['3.7'] # Max version that supports tf 1.15
109
- opset_version : ['18', '15']
110
107
ort_version : ['1.14.1'] # Max version that supports python 3.7
111
108
onnx_version : ['1.14.1'] # Max version that supports python 3.7
112
109
os : ['ubuntu-latest', 'windows-2022']
@@ -179,7 +176,7 @@ jobs:
179
176
180
177
publish-test-results :
181
178
name : " Publish Tests Results to Github"
182
- needs : run_tests
179
+ needs : [Test_min_py_with_min_tf, Test_max_py_with_latest_tf, Extra_tests, run_tests_tf_15]
183
180
runs-on : ubuntu-latest
184
181
permissions :
185
182
checks : write
@@ -195,22 +192,3 @@ jobs:
195
192
uses : EnricoMi/publish-unit-test-result-action@v2
196
193
with :
197
194
files : " artifacts/**/*.xml"
198
-
199
- publish-test-results-tf-15 :
200
- name : " Publish Tests Results(TF15) to Github"
201
- needs : run_tests_tf_15
202
- runs-on : ubuntu-latest
203
- permissions :
204
- checks : write
205
- pull-requests : write
206
- if : always()
207
- steps :
208
- - name : Download Artifacts
209
- uses : actions/download-artifact@v3
210
- with :
211
- path : artifacts
212
-
213
- - name : Publish Test Results
214
- uses : EnricoMi/publish-unit-test-result-action@v2
215
- with :
216
- files : " artifacts/**/*.xml"
0 commit comments