From c66f855caf55062fa6fdfea133b21cfb11f6355f Mon Sep 17 00:00:00 2001 From: Silvano Cerza <3314350+silvanocerza@users.noreply.github.com> Date: Wed, 8 Feb 2023 12:48:20 +0100 Subject: [PATCH] Add missing env vars in rest_api CI tests (#4098) --- .github/workflows/rest_api_tests.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/rest_api_tests.yml b/.github/workflows/rest_api_tests.yml index 23b0c55ea..f307f7224 100644 --- a/.github/workflows/rest_api_tests.yml +++ b/.github/workflows/rest_api_tests.yml @@ -81,11 +81,15 @@ jobs: pip install . - name: Run tests + env: + PYTEST_PARAMS: --maxfail=5 --durations=10 --suppress-no-test-exit-code run: | pytest ${{ env.PYTEST_PARAMS }} rest_api/ - uses: act10ns/slack@v2 + env: + SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} with: status: ${{ job.status }} channel: "#haystack" - if: failure() && github.repository_owner == 'deepset-ai' && github.ref == 'refs/heads/main' + if: failure() && github.ref == 'refs/heads/main'