Skip to content

Commit

Permalink
CI: Notify slack on failure of the test-install workflow. (#4690)
Browse files Browse the repository at this point in the history
  • Loading branch information
csadorf authored Jan 27, 2021
1 parent d2b255b commit dcc8061
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/test-install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,14 @@ jobs:
run:
python -c "import aiida"

- name: Send Slack notification
if: ${{ failure() && github.event_name == 'schedule' }}
uses: kpritam/slack-job-status-action@v1
with:
job-status: ${{ job.status }}
slack-bot-token: ${{ secrets.SLACK_BOT_TOKEN }}
channel: dev-aiida-core

install-with-conda:

if: github.repository == 'aiidateam/aiida-core'
Expand Down Expand Up @@ -101,6 +109,14 @@ jobs:
source activate test-environment
python -c "import aiida"
- name: Send Slack notification
if: ${{ failure() && github.event_name == 'schedule' }}
uses: kpritam/slack-job-status-action@v1
with:
job-status: ${{ job.status }}
slack-bot-token: ${{ secrets.SLACK_BOT_TOKEN }}
channel: dev-aiida-core

tests:

needs: [install-with-pip, install-with-conda]
Expand Down Expand Up @@ -170,6 +186,14 @@ jobs:
run:
.github/workflows/tests.sh

- name: Send Slack notification
if: ${{ failure() && github.event_name == 'schedule' }}
uses: kpritam/slack-job-status-action@v1
with:
job-status: ${{ job.status }}
slack-bot-token: ${{ secrets.SLACK_BOT_TOKEN }}
channel: dev-aiida-core

- name: Freeze test environment
run: pip freeze | sed '1d' | tee requirements-py-${{ matrix.python-version }}.txt

Expand Down

0 comments on commit dcc8061

Please sign in to comment.