diff --git a/.github/workflows/test-install.yml b/.github/workflows/test-install.yml index d0b2432a91..1934e4467a 100644 --- a/.github/workflows/test-install.yml +++ b/.github/workflows/test-install.yml @@ -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' @@ -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] @@ -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