Skip to content

Commit 4b6177a

Browse files
Merge branch 'main' into tracy-docs-quickstart
2 parents 8101e8b + d3ca055 commit 4b6177a

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

.github/workflows/tests.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ on:
55
branches:
66
- main
77
pull_request:
8+
schedule:
9+
- cron: "0 0 * * *"
10+
workflow_dispatch:
811

912
jobs:
1013
build:
@@ -79,3 +82,18 @@ jobs:
7982
flags: ${{ matrix.python-version }}
8083
token: ${{ secrets.CODECOV_TOKEN }}
8184
verbose: true
85+
notifications:
86+
name: Regression notifications
87+
runs-on: ubuntu-latest
88+
needs: build
89+
if: failure() && github.ref == 'refs/heads/main' && github.event_name != 'workflow_dispatch'
90+
steps:
91+
- name: Send notifications of failing tests
92+
uses: slackapi/slack-github-action@b0fa283ad8fea605de13dc3f449259339835fc52 # v2.1.0
93+
with:
94+
errors: true
95+
webhook: ${{ secrets.SLACK_REGRESSION_FAILURES_WEBHOOK_URL }}
96+
webhook-type: webhook-trigger
97+
payload: |
98+
action_url: "${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}"
99+
repository: "${{ github.repository }}"

0 commit comments

Comments
 (0)