@@ -74,14 +74,25 @@ jobs:
7474 name : Run Integration Tests
7575 run : |
7676 uv run -- make integ_test
77+ -
78+ name : Upload Test Results
79+ if : (!cancelled())
80+ uses : actions/upload-artifact@7
81+ with :
82+ name : Test Results (Python ${{ matrix.python-version }})
83+ path : tests_xml/tests.xml
84+ -
85+ name : Upload Coverage Reports
86+ if : (!cancelled())
87+ uses : actions/upload-artifact@v7
88+ with :
89+ name : Coverage Report Integration Tests (Python ${{ matrix.python-version }})
90+ path : coverage/
7791
7892 build-and-test :
7993 name : ' Core / Unit Test Pipeline'
8094 runs-on : ubuntu-latest
8195 timeout-minutes : 20
82- permissions :
83- # For publishing results
84- checks : write
8596
8697 # Run this test for different Python versions
8798 strategy :
@@ -121,21 +132,41 @@ jobs:
121132 run : |
122133 make unit_test
123134 -
124- name : Publish Test Results
125- uses : EnricoMi/publish-unit-test-result-action@v2
126- if : always()
135+ name : Upload Test Results
136+ if : (!cancelled())
137+ uses : actions/upload-artifact@7
127138 with :
128- junit_files : tests_xml/tests.xml
129- check_name : " Core / Unit Test Results (${{ matrix.python-version }})"
130- comment_mode : " off"
139+ name : test-results-core-unittests-py${{ matrix.python-version }}
140+ path : tests_xml/tests.xml
131141 -
132142 name : Upload Coverage Reports
133- if : always( )
134- uses : actions/upload-artifact@v4
143+ if : (!cancelled() )
144+ uses : actions/upload-artifact@v7
135145 with :
136146 name : coverage-report-core-unittests-py${{ matrix.python-version }}
137147 path : coverage/
138148
149+ publish-test-results :
150+ name : " Core / Publish Test Results"
151+ needs : [build-and-test, integration-test]
152+ runs-on : ubuntu-latest
153+ permissions :
154+ checks : write
155+ steps :
156+ -
157+ name : Download Test Results
158+ uses : actions/download-artifact@v8
159+ with :
160+ pattern : test-results-core-unittests-py*
161+ path : results
162+ -
163+ name : Publish Test Results
164+ uses : EnricoMi/publish-unit-test-result-action@v2
165+ with :
166+ files : " results/**/*.xml"
167+ check_name : " Core / Test Results"
168+ comment_mode : " off"
169+
139170 test-petals :
140171 name : Petals Compatibility
141172 uses : CLIMADA-project/climada_petals/.github/workflows/testing.yml@develop
0 commit comments