Skip to content

Commit

Permalink
Notify slack on scheduled test failure (#60)
Browse files Browse the repository at this point in the history
  • Loading branch information
IgorTatarnikov committed Nov 11, 2024
1 parent d317872 commit 4b8f97e
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion .github/workflows/test_and_deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -166,8 +166,18 @@ jobs:
run: |
python -m pytest --color=yes -v tests/brainmapper
- name: Notify slack on scheduled failure
if: failure() && github.event_name == 'schedule'
uses: ravsamhq/notify-slack-action@v2
with:
status: ${{ job.status }} # required
notify_when: 'failure'
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_NOTIFYBOT_WEBHOOK_URL }} # required


build_sdist_wheel:
name: Build source distribution and wheel
name: Build source distribution
needs: [test, test_numba_disabled]
if: github.event_name == 'push' && github.ref_type == 'tag'
runs-on: ubuntu-latest
Expand Down

0 comments on commit 4b8f97e

Please sign in to comment.