Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Notify slack on scheduled test failure #469

Merged
merged 2 commits into from
Nov 12, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 20 additions & 1 deletion .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,8 +184,9 @@ jobs:
run: |
python -m pytest --color=yes -v tests/brainmapper


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
Loading