Skip to content

Commit

Permalink
Added slack notification step after tests and tests with numba disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
IgorTatarnikov committed Nov 11, 2024
1 parent 4b8f97e commit 225577e
Showing 1 changed file with 18 additions and 9 deletions.
27 changes: 18 additions & 9 deletions .github/workflows/test_and_deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,15 @@ jobs:
secret-codecov-token: ${{ secrets.CODECOV_TOKEN }}
use-xvfb: true

- 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

test_numba_disabled:
needs: [linting, manifest]
name: Run tests with numba disabled
Expand Down Expand Up @@ -125,6 +134,15 @@ jobs:
secret-codecov-token: ${{ secrets.CODECOV_TOKEN }}
codecov-flags: "numba"

- 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

# Run brainglobe-workflows brainmapper-CLI tests to check for
# breakages
test_brainmapper_cli:
Expand Down Expand Up @@ -166,15 +184,6 @@ 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
Expand Down

0 comments on commit 225577e

Please sign in to comment.