@@ -173,14 +173,6 @@ jobs:
173173 - name : Run tests
174174 run : pytest --durations=10 --junitxml=test-results.xml -m "not benchmark" .
175175
176- - name : Upload test results
177- if : ${{ !cancelled() }}
178- uses : actions/upload-artifact@v6
179- with :
180- name : test-results-py${{ matrix.python-version }}
181- path : test-results.xml
182- retention-days : 7
183-
184176 - name : Report test results
185177 if : ${{ !cancelled() }}
186178 uses : dorny/test-reporter@v3
@@ -190,51 +182,13 @@ jobs:
190182 reporter : java-junit
191183 fail-on-error : false
192184
193- benchmark :
194- name : Benchmark
195- needs : [images, build, test]
196- runs-on : [self-hosted, gpu]
197- timeout-minutes : 60
198- continue-on-error : true
199- permissions :
200- contents : read
201- packages : read
202- checks : write
203- container :
204- image : ${{ needs.images.outputs.test_py310 }}
205- credentials :
206- username : ${{ github.actor }}
207- password : ${{ secrets.GITHUB_TOKEN }}
208- options : --gpus all
209- steps :
210- - name : Checkout repository
211- uses : actions/checkout@v6
212-
213- - name : Mark workspace as safe directory
214- run : git config --global --add safe.directory "$GITHUB_WORKSPACE"
215-
216- - name : Download wheel
217- uses : actions/download-artifact@v7
218- with :
219- name : wheel-py3.10-linux-x86_64
220- path : dist/
221-
222- - name : Install wheel
223- run : pip install dist/*.whl
224-
225185 - name : Run benchmarks
186+ if : matrix.python-version == '3.10'
187+ continue-on-error : true
226188 run : pytest --durations=10 --junitxml=benchmark-results.xml -m "benchmark" .
227189
228- - name : Upload benchmark results
229- if : ${{ !cancelled() }}
230- uses : actions/upload-artifact@v6
231- with :
232- name : benchmark-results
233- path : benchmark-results.xml
234- retention-days : 7
235-
236190 - name : Report benchmark results
237- if : ${{ !cancelled() }}
191+ if : ${{ !cancelled() && matrix.python-version == '3.10' }}
238192 uses : dorny/test-reporter@v3
239193 with :
240194 name : Benchmark Results
0 commit comments