diff --git a/.github/workflows/integration-tests.yml b/.github/workflows/integration-tests.yml index 5e88e7cb8..e3885caa6 100644 --- a/.github/workflows/integration-tests.yml +++ b/.github/workflows/integration-tests.yml @@ -104,8 +104,20 @@ jobs: run: pytest . -rP --publish -n 5 - uses: actions/upload-artifact@v3 - if: ${{ always() }} + if: always() with: name: Server Logs path: logs/ + - name: Report to Slack on Failure + if: always() + uses: ravsamhq/notify-slack-action@v1 + with: + status: ${{ job.status }} + notification_title: '' + message_format: '{emoji} *{workflow}* has {status_message}' + footer: '{run_url}' + notify_when: 'failure,warnings' + mention_users: 'U025MDH5KS6' + env: + SLACK_WEBHOOK_URL: ${{ secrets.ACTION_MONITORING_SLACK }} \ No newline at end of file diff --git a/.github/workflows/run-notebooks.yml b/.github/workflows/run-notebooks.yml index 7a12f7c37..468f2c975 100644 --- a/.github/workflows/run-notebooks.yml +++ b/.github/workflows/run-notebooks.yml @@ -79,7 +79,20 @@ jobs: run: python3 run_notebook.py --path "churn_prediction/Build and Deploy Churn Ensemble.ipynb" --api_key ${{ env.API_KEY }} --server_address localhost:8080 - uses: actions/upload-artifact@v3 - if: ${{ always() }} + if: always() with: name: Server Logs path: server_logs + + - name: Report to Slack on Failure + if: always() + uses: ravsamhq/notify-slack-action@v1 + with: + status: ${{ job.status }} + notification_title: '' + message_format: '{emoji} *{workflow}* has {status_message}' + footer: '{run_url}' + notify_when: 'failure,warnings' + mention_users: 'U025MDH5KS6,U01JEUX1J2Y,U01J8Q1HUBC' + env: + SLACK_WEBHOOK_URL: ${{ secrets.ACTION_MONITORING_SLACK }} \ No newline at end of file