@@ -213,68 +213,20 @@ jobs:
213213 if-no-files-found : error
214214 retention-days : 1
215215
216- # The following job is based on pyTooling/PublishTestResults, but specialized for OSVVM's needs.
217- # * Changed to another JUnit dialect (pyTest-JUnit -> Any-JUnit)
218216 PublishTestResults :
219- name : 📊 Publish Tests Results
220- runs-on : ubuntu-24.04
217+ uses : pyTooling/Actions/.github/workflows/PublishTestResults.yml@r7
221218 needs :
222219 - GHDL
223220 - NVC
224-
225- if : always()
226-
227- steps :
228- - name : ⏬ Checkout repository
229- uses : actions/checkout@v6
230-
231- - name : ' 📥 Download artifact: package'
232- uses : pyTooling/download-artifact@v7
233- with :
234- pattern : xml-*
235- path : artifacts
236-
237- - name : 🔎 Inspect all artifacts
238- run : |
239- tree artifacts
240-
241- - name : 🔧 Install pyEDAA.Reports (JUnit Parser and Merger)
242- run : |
243- python -m pip install --disable-pip-version-check --break-system-packages -U pyEDAA.Reports
244-
245- - name : Rename JUnit files and move them all into 'junit/'
246- run : |
247- mkdir -p junit
248- find artifacts/ -type f -path "*.xml" -exec sh -c 'cp -v $0 "junit/$(basename $(dirname $0)).$(basename $0)"' {} ';'
249- tree -pash junit
250-
251- - name : 🔁 Merge JUnit Unit Test Summaries
252- run : |
253- pyedaa-reports -d unittest \
254- "--merge=Any-JUnit:junit/*.xml" \
255- --render=tree \
256- "--name=OSVVM Regression" \
257- "--output=pyTest-JUnit:Unittesting.xml"
258- printf "%s\n" "cat Unittesting.xml"
259- cat Unittesting.xml
260-
261- - name : 📊 Publish Unit Test Results
262- uses : dorny/test-reporter@v2
263- if : ${{ github.event_name != 'pull_request' }}
264- with :
265- name : OSVVM VC Regression Results
266- path : Unittesting.xml
267- reporter : java-junit
268- # list-suites: all
269- # list-tests: failed
270-
271- - name : 📤 Upload merged 'JUnit Test Summary' artifact
272- uses : pyTooling/upload-artifact@v6
273- with :
274- name : xml
275- path : Unittesting.xml
276- if-no-files-found : error
277- retention-days : 1
221+ if : success() || failure()
222+ with :
223+ unittest_artifacts_pattern : ' xml-*'
224+ testsuite-summary-name : ' OSVVM Regression'
225+ merge-input-dialect : ' Any-JUnit'
226+ merge-output-dialect : ' pyTest-JUnit'
227+ additional_merge_args : ' --render=tree'
228+ merged_junit_artifact : ' xml'
229+ dorny : ' true'
278230
279231 Package :
280232 name : 📦 Package OSVVMLibraries incl. all Git submodules as artifact
0 commit comments