8000 CI: Update weekly dependency test job · matplotlib/matplotlib@5e9df6a · GitHub
[go: up one dir, main page]

Skip to content

Commit 5e9df6a

Browse files
committed
CI: Update weekly dependency test job
The weekly dependency test was creating multiple issues when several of the matrix jobs would fail. To fix that, we move the issue creation script to a new job to only be triggered once. Additionally, add in the job run link for quicker reference to the CI failure.
1 parent 342c8d9 commit 5e9df6a

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

.github/workflows/tests.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -284,15 +284,23 @@ jobs:
284284
name: "${{ matrix.python-version }} ${{ matrix.os }} ${{ matrix.name-suffix }} result images"
285285
path: ./result_images
286286

287+
# Separate dependent job to only upload one issue from the matrix of jobs
288+
create-issue:
289+
runs-on: ubuntu-latest
290+
needs: [test]
291+
if: ${{ failure() && github.event_name == 'schedule' }}
292+
name: "Create issue on failure"
293+
294+
steps:
287295
- name: Create issue on failure
288296
uses: imjohnbo/issue-bot@v3
289-
if: ${{ failure() && github.event_name == 'schedule' }}
290297
with:
291298
title: "[TST] Upcoming dependency test failures"
292299
body: |
293300
The weekly build with nightly wheels from numpy and pandas
294301
has failed. Check the logs for any updates that need to be
295302
made in matplotlib.
303+
https://github.com/${{github.repository}}/actions/runs/${{github.run_id}}
296304
297305
pinned: false
298306
close-previous: false

0 commit comments

Comments
 (0)
0