Skip to content

Commit b234051

Browse files
committed
improve ci
Signed-off-by: xadupre <[email protected]>
1 parent d66a43c commit b234051

File tree

4 files changed

+141
-12
lines changed

4 files changed

+141
-12
lines changed

.github/workflows/keras_application_test_ci.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ concurrency:
1515

1616
jobs:
1717

18-
Test_min_py_with_min_tf: # Do not change this name because it is used in Ruleset of this repo.
18+
Test_min_py38_with_min_tf: # Do not change this name because it is used in Ruleset of this repo.
1919
strategy:
2020
fail-fast: false
2121
runs-on: ubuntu-latest
@@ -39,7 +39,7 @@ jobs:
3939
name: Test Results (Py38-TF2.9-ubuntu)
4040
path: ./**/test-results-*.xml
4141

42-
Test_max_py_with_latest_tf: # Do not change this name because it is used in Ruleset of this repo.
42+
Test_max_py310_with_latest_tf: # Do not change this name because it is used in Ruleset of this repo.
4343
strategy:
4444
fail-fast: false
4545
runs-on: ubuntu-latest
@@ -126,7 +126,7 @@ jobs:
126126

127127
publish-test-results:
128128
name: "Publish Tests Results to Github"
129-
needs: [Test_min_py_with_min_tf, Test_max_py_with_latest_tf, Test_py37_with_tf1_15, Extra_tests]
129+
needs: [Test_min_py38_with_min_tf, Test_max_py310_with_latest_tf, Test_py37_with_tf1_15, Extra_tests]
130130
runs-on: ubuntu-latest
131131
permissions:
132132
checks: write

.github/workflows/keras_unit_test_ci.yml

Lines changed: 51 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ concurrency:
1414
cancel-in-progress: true
1515

1616
jobs:
17-
Test_min_py_with_min_tf: # Do not change this name because it is used in Ruleset of this repo.
17+
Test_min_py38_with_min_tf: # Do not change this name because it is used in Ruleset of this repo.
1818
strategy:
1919
fail-fast: false
2020
runs-on: ubuntu-latest
@@ -38,7 +38,7 @@ jobs:
3838
name: Test Results (Py38-TF2.9-ubuntu)
3939
path: ./**/test-results-*.xml
4040

41-
Test_max_py_with_latest_tf: # Do not change this name because it is used in Ruleset of this repo.
41+
Test_max_py310_with_latest_tf: # Do not change this name because it is used in Ruleset of this repo.
4242
strategy:
4343
fail-fast: false
4444
runs-on: ubuntu-latest
@@ -62,6 +62,54 @@ jobs:
6262
name: Test Results (Py310-TF2.18-ubuntu)
6363
path: ./**/test-results-*.xml
6464

65+
Test_max_py311_with_latest_tf: # Do not change this name because it is used in Ruleset of this repo.
66+
strategy:
67+
fail-fast: false
68+
runs-on: ubuntu-latest
69+
70+
steps:
71+
- name: Checkout code
72+
uses: actions/checkout@v4
73+
74+
- name: Run Tests (Py311-TF2.18)
75+
uses: ./.github/actions/keras_unit_test
76+
with:
77+
tf_version: '2.18.0'
78+
python_version: '3.11'
79+
ort_version: '1.20.1'
80+
onnx_version: '1.17.0'
81+
82+
- name: Upload Test Results
83+
if: always()
84+
uses: actions/upload-artifact@v4
85+
with:
86+
name: Test Results (Py311-TF2.18-ubuntu)
87+
path: ./**/test-results-*.xml
88+
89+
Test_max_py312_with_latest_tf: # Do not change this name because it is used in Ruleset of this repo.
90+
strategy:
91+
fail-fast: false
92+
runs-on: ubuntu-latest
93+
94+
steps:
95+
- name: Checkout code
96+
uses: actions/checkout@v4
97+
98+
- name: Run Tests (Py312-TF2.18)
99+
uses: ./.github/actions/keras_unit_test
100+
with:
101+
tf_version: '2.18.0'
102+
python_version: '3.12'
103+
ort_version: '1.20.1'
104+
onnx_version: '1.17.0'
105+
106+
- name: Upload Test Results
107+
if: always()
108+
uses: actions/upload-artifact@v4
109+
with:
110+
name: Test Results (Py312-TF2.18-ubuntu)
111+
path: ./**/test-results-*.xml
112+
65113
Test_py37_with_tf1_15: # Do not change this name because it is used in Ruleset of this repo.
66114
strategy:
67115
fail-fast: false
@@ -125,7 +173,7 @@ jobs:
125173

126174
publish-test-results:
127175
name: "Publish Tests Results to Github"
128-
needs: [Test_min_py_with_min_tf, Test_max_py_with_latest_tf, Test_py37_with_tf1_15, Extra_tests]
176+
needs: [Test_min_py38_with_min_tf, Test_max_py310_with_latest_tf, Test_max_py311_with_latest_tf, Test_max_py312_with_latest_tf, Test_py37_with_tf1_15, Extra_tests]
129177
runs-on: ubuntu-latest
130178
permissions:
131179
checks: write

.github/workflows/pretrained_model_test_ci.yml

Lines changed: 30 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ concurrency:
1515

1616
jobs:
1717

18-
Test_min_py_with_min_tf: # Do not change this name because it is used in 'publish-test-results' section below.
18+
Test_min_py38_with_min_tf: # Do not change this name because it is used in 'publish-test-results' section below.
1919
strategy:
2020
fail-fast: false
2121
runs-on: ubuntu-latest
@@ -42,7 +42,7 @@ jobs:
4242
name: Test Results (Py38-TF2.9-18-ubuntu)
4343
path: ./**/test-results-*.xml
4444

45-
Test_max_py_with_latest_tf: # Do not change this name because it is used in 'publish-test-results' section below.
45+
Test_max_py310_with_latest_tf: # Do not change this name because it is used in 'publish-test-results' section below.
4646
strategy:
4747
fail-fast: false
4848
runs-on: ubuntu-latest
@@ -69,6 +69,33 @@ jobs:
6969
name: Test Results (Py310-TF2.18-18-ubuntu)
7070
path: ./**/test-results-*.xml
7171

72+
Test_max_py312_with_latest_tf: # Do not change this name because it is used in 'publish-test-results' section below.
73+
strategy:
74+
fail-fast: false
75+
runs-on: ubuntu-latest
76+
77+
steps:
78+
- name: Checkout code
79+
uses: actions/checkout@v4
80+
81+
- name: Run Tests (Py312-TF2.18-18)
82+
uses: ./.github/actions/pretrained_model_test
83+
with:
84+
os: 'ubuntu-latest'
85+
tf_version: '2.18.0'
86+
python_version: '3.12'
87+
ort_version: '1.20.1'
88+
onnx_version: '1.17.0'
89+
opset_version: '18'
90+
skip_tflite: 'False'
91+
92+
- name: Upload Test Results
93+
if: always()
94+
uses: actions/upload-artifact@v4
95+
with:
96+
name: Test Results (Py312-TF2.18-18-ubuntu)
97+
path: ./**/test-results-*.xml
98+
7299
Test_py37_with_tf1_15: # Do not change this name because it is used in 'publish-test-results' section below.
73100
strategy:
74101
fail-fast: false
@@ -139,7 +166,7 @@ jobs:
139166

140167
publish-test-results:
141168
name: "Publish Tests Results to Github"
142-
needs: [Test_min_py_with_min_tf, Test_max_py_with_latest_tf, Test_py37_with_tf1_15, Extra_tests]
169+
needs: [Test_min_py38_with_min_tf, Test_max_py310_with_latest_tf, Test_max_py312_with_latest_tf, Test_py37_with_tf1_15, Extra_tests]
143170
runs-on: ubuntu-latest
144171
permissions:
145172
checks: write

.github/workflows/unit_test_ci.yml

Lines changed: 57 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ concurrency:
1515

1616
jobs:
1717

18-
Test_min_py_with_min_tf: # Do not change this name because it is used in Ruleset of this repo.
18+
Test_min_py38_with_min_tf: # Do not change this name because it is used in Ruleset of this repo.
1919
strategy:
2020
fail-fast: false
2121
runs-on: ubuntu-latest
@@ -42,7 +42,7 @@ jobs:
4242
name: Test Results (Py38-TF2.9-18-ubuntu)
4343
path: ./**/test-results-*.xml
4444

45-
Test_max_py_with_latest_tf: # Do not change this name because it is used in Ruleset of this repo.
45+
Test_max_py310_with_latest_tf: # Do not change this name because it is used in Ruleset of this repo.
4646
strategy:
4747
fail-fast: false
4848
runs-on: ubuntu-latest
@@ -69,6 +69,60 @@ jobs:
6969
name: Test Results (Py310-TF2.18-18-ubuntu)
7070
path: ./**/test-results-*.xml
7171

72+
Test_max_py311_with_latest_tf: # Do not change this name because it is used in Ruleset of this repo.
73+
strategy:
74+
fail-fast: false
75+
runs-on: ubuntu-latest
76+
77+
steps:
78+
- name: Checkout code
79+
uses: actions/checkout@v4
80+
81+
- name: Run Tests (Py311-TF2.18-18)
82+
uses: ./.github/actions/unit_test
83+
with:
84+
os: 'ubuntu-latest'
85+
tf_version: '2.18.0'
86+
python_version: '3.11'
87+
ort_version: '1.20.1'
88+
onnx_version: '1.17.0'
89+
opset_version: '18'
90+
skip_tflite: 'False'
91+
92+
- name: Upload Test Results
93+
if: always()
94+
uses: actions/upload-artifact@v4
95+
with:
96+
name: Test Results (Py311-TF2.18-18-ubuntu)
97+
path: ./**/test-results-*.xml
98+
99+
Test_max_py312_with_latest_tf: # Do not change this name because it is used in Ruleset of this repo.
100+
strategy:
101+
fail-fast: false
102+
runs-on: ubuntu-latest
103+
104+
steps:
105+
- name: Checkout code
106+
uses: actions/checkout@v4
107+
108+
- name: Run Tests (Py312-TF2.18-18)
109+
uses: ./.github/actions/unit_test
110+
with:
111+
os: 'ubuntu-latest'
112+
tf_version: '2.18.0'
113+
python_version: '3.12'
114+
ort_version: '1.20.1'
115+
onnx_version: '1.17.0'
116+
opset_version: '18'
117+
skip_tflite: 'False'
118+
119+
- name: Upload Test Results
120+
if: always()
121+
uses: actions/upload-artifact@v4
122+
with:
123+
name: Test Results (Py312-TF2.18-18-ubuntu)
124+
path: ./**/test-results-*.xml
125+
72126
Extra_tests:
73127
strategy:
74128
fail-fast: false
@@ -122,7 +176,7 @@ jobs:
122176

123177
publish-test-results:
124178
name: "Publish Tests Results to Github"
125-
needs: [Test_min_py_with_min_tf, Test_max_py_with_latest_tf, Extra_tests]
179+
needs: [Test_min_py38_with_min_tf, Test_max_py310_with_latest_tf, Test_max_py311_with_latest_tf, Test_max_py312_with_latest_tf, Extra_tests]
126180
runs-on: ubuntu-latest
127181
permissions:
128182
checks: write

0 commit comments

Comments
 (0)