Skip to content

Commit 870f22f

Browse files
committed
Check how to download test results.
Signed-off-by: Jay Zhang <jiz@microsoft.com>
1 parent c33663d commit 870f22f

File tree

4 files changed

+67
-21
lines changed

4 files changed

+67
-21
lines changed

.github/workflows/keras_application_test_core.yml

Lines changed: 26 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,12 @@ jobs:
1212
run_tests:
1313
strategy:
1414
matrix:
15-
tf_version: ['2.9.0', '2.13.0']
16-
python_version: ['3.8', '3.9']
17-
opset_version: ['18', '15']
15+
# tf_version: ['2.9.0', '2.13.0']
16+
# python_version: ['3.8', '3.9']
17+
# opset_version: ['18', '15']
18+
tf_version: ['2.9.0']
19+
python_version: ['3.9']
20+
opset_version: ['18']
1821
ort_version: ['1.16.3']
1922
onnx_version: ['1.15.0']
2023
os: ['ubuntu-latest', 'windows-2022']
@@ -75,6 +78,13 @@ jobs:
7578
cd tests/keras2onnx_applications/nightly_build
7679
python run_all_v2.py
7780
81+
- name: Upload Test Results
82+
if: always()
83+
uses: actions/upload-artifact@v3
84+
with:
85+
name: Test Results (${{ matrix.tf_version }}-${{ matrix.python_version }}-${{ matrix.os }})
86+
path: ./**/test-results*.xml
87+
7888
run_tests_tf_15:
7989
strategy:
8090
matrix:
@@ -149,8 +159,7 @@ jobs:
149159
uses: actions/upload-artifact@v3
150160
with:
151161
name: Test Results (${{ matrix.tf_version }}-${{ matrix.python_version }}-${{ matrix.os }})
152-
path: pytest.xml
153-
162+
path: ./**/test-results*.xml
154163

155164
publish-test-results:
156165
name: "Publish Tests Results to Github"
@@ -161,10 +170,15 @@ jobs:
161170
pull-requests: write
162171
if: always()
163172
steps:
173+
- name: Download Artifacts
174+
uses: actions/download-artifact@v3
175+
with:
176+
path: artifacts
177+
164178
- name: Publish Test Results
165179
uses: EnricoMi/publish-unit-test-result-action@v2
166180
with:
167-
files: "junit/test-results.xml"
181+
files: "artifacts/**/*.xml"
168182

169183
publish-test-results-tf-15:
170184
name: "Publish Tests Results(TF15) to Github"
@@ -175,7 +189,12 @@ jobs:
175189
pull-requests: write
176190
if: always()
177191
steps:
192+
- name: Download Artifacts
193+
uses: actions/download-artifact@v3
194+
with:
195+
path: artifacts
196+
178197
- name: Publish Test Results
179198
uses: EnricoMi/publish-unit-test-result-action@v2
180199
with:
181-
files: "junit/test-results.xml"
200+
files: "artifacts/**/*.xml"

.github/workflows/keras_unit_test_core.yml

Lines changed: 26 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,12 @@ jobs:
1212
run_tests:
1313
strategy:
1414
matrix:
15-
tf_version: ['2.9.0', '2.13.0']
16-
python_version: ['3.8', '3.9', '3.10']
17-
opset_version: ['18', '15']
18-
ort_version: ['1.16.3']
15+
# tf_version: ['2.9.0', '2.13.0']
16+
# python_version: ['3.8', '3.9']
17+
# opset_version: ['18', '15']
18+
tf_version: ['2.9.0']
19+
python_version: ['3.9']
20+
opset_version: ['18'] ort_version: ['1.16.3']
1921
onnx_version: ['1.15.0']
2022
os: ['ubuntu-latest', 'windows-2022']
2123

@@ -56,6 +58,13 @@ jobs:
5658
python -c "import onnxconverter_common"
5759
pytest tests/keras2onnx_unit_tests --doctest-modules --junitxml=junit/test-results.xml
5860
61+
- name: Upload Test Results
62+
if: always()
63+
uses: actions/upload-artifact@v3
64+
with:
65+
name: Test Results (${{ matrix.tf_version }}-${{ matrix.python_version }}-${{ matrix.os }})
66+
path: ./**/test-results*.xml
67+
5968
run_tests_tf_15:
6069
strategy:
6170
matrix:
@@ -109,7 +118,7 @@ jobs:
109118
uses: actions/upload-artifact@v3
110119
with:
111120
name: Test Results (${{ matrix.tf_version }}-${{ matrix.python_version }}-${{ matrix.os }})
112-
path: pytest.xml
121+
path: ./**/test-results*.xml
113122

114123

115124
publish-test-results:
@@ -121,10 +130,15 @@ jobs:
121130
pull-requests: write
122131
if: always()
123132
steps:
133+
- name: Download Artifacts
134+
uses: actions/download-artifact@v3
135+
with:
136+
path: artifacts
137+
124138
- name: Publish Test Results
125139
uses: EnricoMi/publish-unit-test-result-action@v2
126140
with:
127-
files: "junit/test-results.xml"
141+
files: "artifacts/**/*.xml"
128142

129143
publish-test-results-tf-15:
130144
name: "Publish Tests Results(TF15) to Github"
@@ -135,7 +149,12 @@ jobs:
135149
pull-requests: write
136150
if: always()
137151
steps:
152+
- name: Download Artifacts
153+
uses: actions/download-artifact@v3
154+
with:
155+
path: artifacts
156+
138157
- name: Publish Test Results
139158
uses: EnricoMi/publish-unit-test-result-action@v2
140159
with:
141-
files: "junit/test-results.xml"
160+
files: "artifacts/**/*.xml"

.github/workflows/pretrained_model_tests_core.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ jobs:
4747
# TODO: fix unity model path
4848
# python tests/run_pretrained_models.py --backend $CI_ONNX_BACKEND --opset $CI_ONNX_OPSET --config tests/unity.yaml || status=$?
4949
python tests/run_pretrained_models.py --backend onnxruntime --opset ${{ matrix.opset_version }} --skip_tf_tests False --skip_tflite_tests False --skip_tfjs_tests True --config tests/run_pretrained_models.yaml || status=$?
50-
ls *.xml
50+
ls
5151
5252
# publish-test-results:
5353
# name: "Publish Tests Results to Github"

.github/workflows/unit_tests_core.yml

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,12 @@ jobs:
1212
run_tests:
1313
strategy:
1414
matrix:
15-
tf_version: ['2.9.0', '2.13.0']
16-
python_version: ['3.8', '3.9', '3.10']
17-
opset_version: ['18', '15']
15+
# tf_version: ['2.9.0', '2.13.0']
16+
# python_version: ['3.8', '3.9']
17+
# opset_version: ['18', '15']
18+
tf_version: ['2.9.0']
19+
python_version: ['3.9']
20+
opset_version: ['18']
1821
ort_version: ['1.16.3']
1922
os: ['ubuntu-latest', 'windows-2022']
2023

@@ -51,7 +54,7 @@ jobs:
5154
export TF2ONNX_SKIP_TFLITE_TESTS=False
5255
export TF2ONNX_SKIP_TFJS_TESTS=True
5356
export TF2ONNX_SKIP_TF_TESTS=False
54-
python -m pytest --cov=tf2onnx --cov-report=term --disable-pytest-warnings -r s tests --cov-append
57+
python -m pytest --cov=tf2onnx --cov-report=term --disable-pytest-warnings -r s tests --cov-append --junitxml=junit/test-results.xml
5558
ls
5659
5760
- name: Run unit_test (Windows)
@@ -62,15 +65,15 @@ jobs:
6265
set TF2ONNX_SKIP_TFLITE_TESTS=False
6366
set TF2ONNX_SKIP_TFJS_TESTS=True
6467
set TF2ONNX_SKIP_TF_TESTS=False
65-
python -m pytest --cov=tf2onnx --cov-report=term --disable-pytest-warnings -r s tests --cov-append
68+
python -m pytest --cov=tf2onnx --cov-report=term --disable-pytest-warnings -r s tests --cov-append --junitxml=junit/test-results.xml
6669
ls
6770
6871
- name: Upload Test Results
6972
if: always()
7073
uses: actions/upload-artifact@v3
7174
with:
7275
name: Test Results (${{ matrix.tf_version }}-${{ matrix.python_version }}-${{ matrix.os }})
73-
path: pytest.xml
76+
path: ./**/test-results-*.xml
7477

7578

7679
publish-test-results:
@@ -82,6 +85,11 @@ jobs:
8285
pull-requests: write
8386
if: always()
8487
steps:
88+
- name: Download Artifacts
89+
uses: actions/download-artifact@v3
90+
with:
91+
path: artifacts
92+
8593
- name: Publish Test Results
8694
uses: EnricoMi/publish-unit-test-result-action@v2
8795
with:

0 commit comments

Comments
 (0)