diff --git a/.github/workflows/latest_deps_tests.yml b/.github/workflows/latest_deps_tests.yml index a291257c5..1c43b0f75 100644 --- a/.github/workflows/latest_deps_tests.yml +++ b/.github/workflows/latest_deps_tests.yml @@ -216,6 +216,24 @@ jobs: run: pytest tests -vv --maxfail=10 - name: Run end-to-end tests run: make test-end-to-end + + slack-notification: + name: Slack Notification + needs: [cpu-tests, gpu-tests] + if: always() + runs-on: ubuntu-latest + permissions: + contents: read + env: + CI_SLACK_CHANNEL: ${{ secrets.CI_SLACK_CHANNEL }} + steps: + - name: Post to a Slack channel + uses: huggingface/hf-workflows/.github/actions/post-slack@a88e7fa2eaee28de5a4d6142381b1fb792349b67 # main + with: + slack_channel: ${{ env.CI_SLACK_CHANNEL }} + title: "Results of the latest dependency tests (CPU + GPU)" + status: ${{ (needs.cpu-tests.result == 'success' && needs.gpu-tests.result == 'success') && 'success' || 'failure' }} + slack_token: ${{ secrets.SLACK_CIFEEDBACK_BOT_TOKEN }} # This job creates or updates a PR with the upgraded lockfile open-pr: