From 63b45e5f6bd4c408977ac104ebff265d06deb939 Mon Sep 17 00:00:00 2001 From: Igor Tatarnikov <61896994+IgorTatarnikov@users.noreply.github.com> Date: Fri, 8 Nov 2024 16:34:00 +0000 Subject: [PATCH] Notify slack on scheduled test failure (#60) --- .github/workflows/test_and_deploy.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.github/workflows/test_and_deploy.yml b/.github/workflows/test_and_deploy.yml index 9d89ae1..3fc225e 100644 --- a/.github/workflows/test_and_deploy.yml +++ b/.github/workflows/test_and_deploy.yml @@ -78,6 +78,17 @@ jobs: python-version: ${{ matrix.python-version }} secret-codecov-token: ${{ secrets.CODECOV_TOKEN }} + + - 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_wheels: name: Build source distribution needs: [test]