Skip to content

Commit

Permalink
Merge pull request #4560 from neutrinoceros/auto_issue_future_break
Browse files Browse the repository at this point in the history
  • Loading branch information
neutrinoceros authored Jul 19, 2023
2 parents 59a350d + cef612a commit f884f30
Showing 1 changed file with 24 additions and 2 deletions.
26 changes: 24 additions & 2 deletions .github/workflows/bleeding-edge.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ on:
paths:
- .github/workflows/bleeding-edge.yaml
schedule:
# run this every day at 3 am UTC
- cron: '0 3 * * *'
# run this every Wednesday at 3 am UTC
- cron: 0 3 * * 3
workflow_dispatch:

jobs:
Expand Down Expand Up @@ -67,3 +67,25 @@ jobs:
run: |
yt config set --local yt log_level 50 # Disable excessive output
pytest -vvv --color=yes
create-issue:
if: ${{ failure() && github.event_name == 'schedule' }}
needs: [build]
permissions:
issues: write
runs-on: ubuntu-latest
name: Create issue on failure

steps:
- name: Create issue on failure
uses: imjohnbo/issue-bot@v3
with:
title: 'TST: Upcoming dependency test failures'
body: |
The weekly build with future dependencies has failed. Check the logs
https://github.com/${{github.repository}}/actions/runs/${{github.run_id}}
labels: 'tests: running tests,'
pinned: false
close-previous: false
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit f884f30

Please sign in to comment.