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

DevOps: Add a notification for nightly workflow on fail #5605

Merged
merged 1 commit into from
Jul 27, 2022
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
13 changes: 13 additions & 0 deletions .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ jobs:
run: sudo apt update && sudo apt install postgresql

- name: Install aiida-core
id: install
run: |
pip install -r requirements/requirements-py-${{ matrix.python-version }}.txt
pip install --no-deps -e .
Expand All @@ -71,4 +72,16 @@ jobs:
run: .github/workflows/setup.sh

- name: Run tests
id: tests
run: .github/workflows/tests_nightly.sh

- name: Slack notification
if: always() && (steps.install.outcome == 'Failure' || steps.tests.outcome == 'Failure')
uses: rtCamp/action-slack-notify@v2
env:
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
SLACK_ICON: https://www.materialscloud.org/discover/images/0ba0a17d.aiida-logo-128.png
SLACK_CHANNEL: dev-aiida-core
SLACK_COLOR: b60205
SLACK_TITLE: "Nightly build of `aiida-core/main` failed"
SLACK_MESSAGE: "The tests of the `nightly.yml` GHA worklow failed."