diff --git a/.github/workflows/docs-website-test-docs-snippets.yml b/.github/workflows/docs-website-test-docs-snippets.yml index 99aad642f7..78a0dca953 100644 --- a/.github/workflows/docs-website-test-docs-snippets.yml +++ b/.github/workflows/docs-website-test-docs-snippets.yml @@ -2,13 +2,13 @@ name: Test Python snippets in docs on: schedule: - - cron: '17 3 * * *' # daily at 03:17 UTC + - cron: "17 3 * * *" # daily at 03:17 UTC workflow_dispatch: inputs: haystack_version: - description: 'Haystack version to test against (e.g., 2.16.1, main)' + description: "Haystack version to test against (e.g., 2.16.1, main)" required: false - default: 'main' + default: "main" type: string env: @@ -35,7 +35,7 @@ jobs: - name: Setup Python uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0 with: - python-version: '3.11' + python-version: "3.11" - name: Install Hatch run: | @@ -61,6 +61,6 @@ jobs: - test-docs-snippets runs-on: ubuntu-slim steps: - - uses: deepset-ai/notify-slack-action@3cda73b77a148f16f703274198e7771340cf862b # v1 + - uses: deepset-ai/notify-slack-action@a65def0c8bf91d6520286ab34280151c76a5a008 # v1.1.0 with: slack-webhook-url: ${{ secrets.SLACK_WEBHOOK_URL_NOTIFICATIONS }} diff --git a/.github/workflows/docs_search_sync.yml b/.github/workflows/docs_search_sync.yml index 0cb6383b61..21a800c8a1 100644 --- a/.github/workflows/docs_search_sync.yml +++ b/.github/workflows/docs_search_sync.yml @@ -15,7 +15,6 @@ jobs: runs-on: ubuntu-latest steps: - - name: Checkout Haystack repo uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -50,6 +49,6 @@ jobs: - name: Notify Slack on nightly failure if: failure() && github.event_name == 'schedule' - uses: deepset-ai/notify-slack-action@3cda73b77a148f16f703274198e7771340cf862b # v1 + uses: deepset-ai/notify-slack-action@a65def0c8bf91d6520286ab34280151c76a5a008 # v1.1.0 with: slack-webhook-url: ${{ secrets.SLACK_WEBHOOK_URL_NOTIFICATIONS }} diff --git a/.github/workflows/e2e.yml b/.github/workflows/e2e.yml index 69632cd7ba..bf81f36552 100644 --- a/.github/workflows/e2e.yml +++ b/.github/workflows/e2e.yml @@ -27,22 +27,22 @@ jobs: timeout-minutes: 60 runs-on: ubuntu-latest steps: - - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 + - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 - - uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0 - with: - python-version: "${{ env.PYTHON_VERSION }}" + - uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0 + with: + python-version: "${{ env.PYTHON_VERSION }}" - - name: Install Hatch - run: | - python -m pip install --upgrade pip - pip install hatch==${{ env.HATCH_VERSION }} --uploaded-prior-to=P1D + - name: Install Hatch + run: | + python -m pip install --upgrade pip + pip install hatch==${{ env.HATCH_VERSION }} --uploaded-prior-to=P1D - - name: Run tests - run: hatch run e2e:test + - name: Run tests + run: hatch run e2e:test - - name: Notify Slack on nightly failure - if: failure() && github.event_name == 'schedule' - uses: deepset-ai/notify-slack-action@3cda73b77a148f16f703274198e7771340cf862b # v1 - with: - slack-webhook-url: ${{ secrets.SLACK_WEBHOOK_URL_NOTIFICATIONS }} + - name: Notify Slack on nightly failure + if: failure() && github.event_name == 'schedule' + uses: deepset-ai/notify-slack-action@a65def0c8bf91d6520286ab34280151c76a5a008 # v1.1.0 + with: + slack-webhook-url: ${{ secrets.SLACK_WEBHOOK_URL_NOTIFICATIONS }} diff --git a/.github/workflows/license_compliance.yml b/.github/workflows/license_compliance.yml index f8c4950764..9c29389476 100644 --- a/.github/workflows/license_compliance.yml +++ b/.github/workflows/license_compliance.yml @@ -59,6 +59,6 @@ jobs: - name: Notify Slack on failure if: failure() - uses: deepset-ai/notify-slack-action@3cda73b77a148f16f703274198e7771340cf862b # v1 + uses: deepset-ai/notify-slack-action@a65def0c8bf91d6520286ab34280151c76a5a008 # v1.1.0 with: slack-webhook-url: ${{ secrets.SLACK_WEBHOOK_URL_NOTIFICATIONS }} diff --git a/.github/workflows/slow.yml b/.github/workflows/slow.yml index 396fd3f114..42e5ea9742 100644 --- a/.github/workflows/slow.yml +++ b/.github/workflows/slow.yml @@ -158,7 +158,7 @@ jobs: - name: Notify Slack on nightly failure if: failure() && github.event_name == 'schedule' - uses: deepset-ai/notify-slack-action@3cda73b77a148f16f703274198e7771340cf862b # v1 + uses: deepset-ai/notify-slack-action@a65def0c8bf91d6520286ab34280151c76a5a008 # v1.1.0 with: slack-webhook-url: ${{ secrets.SLACK_WEBHOOK_URL_NOTIFICATIONS }} diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 56b85e04c3..8e6f6b8203 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -17,8 +17,8 @@ on: - "v[0-9].*[0-9].x" # when we push, we do not need to satisfy Branch Protection rules, so we can ignore PRs that just change docs paths-ignore: - - 'docs/**' - - 'docs-website/**' + - "docs/**" + - "docs-website/**" pull_request: types: - opened @@ -37,9 +37,9 @@ env: jobs: check-if-changed: - # This job checks if the relevant files have been changed. - # We check for changes in the check-if-changed job instead of using paths/paths-ignore at workflow level. - # This ensures the "Mark tests as completed" job always runs, which is required by Branch Protection rules. + # This job checks if the relevant files have been changed. + # We check for changes in the check-if-changed job instead of using paths/paths-ignore at workflow level. + # This ensures the "Mark tests as completed" job always runs, which is required by Branch Protection rules. name: Check if changed runs-on: ubuntu-slim permissions: @@ -224,7 +224,6 @@ jobs: pip install hatch==${{ env.HATCH_VERSION }} --uploaded-prior-to=P1D echo "env=$(hatch env find test)" >> "$GITHUB_OUTPUT" - - name: Run run: hatch run test:integration-only-fast @@ -257,7 +256,6 @@ jobs: path: ${{ steps.hatch.outputs.env }} key: ${{ runner.os }}-${{ github.sha }} - - name: Run run: hatch run test:integration-only-fast @@ -297,7 +295,7 @@ jobs: - integration-tests-windows runs-on: ubuntu-slim steps: - - uses: deepset-ai/notify-slack-action@3cda73b77a148f16f703274198e7771340cf862b # v1 + - uses: deepset-ai/notify-slack-action@a65def0c8bf91d6520286ab34280151c76a5a008 # v1.1.0 with: slack-webhook-url: ${{ secrets.SLACK_WEBHOOK_URL_NOTIFICATIONS }} @@ -314,15 +312,15 @@ jobs: - integration-tests-windows steps: - - name: Mark tests as completed - run: | - if [ "${{ needs.check-imports.result }}" = "failure" ] || - [ "${{ needs.mypy.result }}" = "failure" ] || - [ "${{ needs.integration-tests-linux.result }}" = "failure" ] || - [ "${{ needs.integration-tests-macos.result }}" = "failure" ] || - [ "${{ needs.integration-tests-windows.result }}" = "failure" ]; then - echo "Tests failed!" - exit 1 - else - echo "Tests completed!" - fi + - name: Mark tests as completed + run: | + if [ "${{ needs.check-imports.result }}" = "failure" ] || + [ "${{ needs.mypy.result }}" = "failure" ] || + [ "${{ needs.integration-tests-linux.result }}" = "failure" ] || + [ "${{ needs.integration-tests-macos.result }}" = "failure" ] || + [ "${{ needs.integration-tests-windows.result }}" = "failure" ]; then + echo "Tests failed!" + exit 1 + else + echo "Tests completed!" + fi