Skip to content
Merged
9 changes: 9 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,12 @@ updates:
directory: '/'
schedule:
interval: 'daily'
cooldown:
default-days: 1

- package-ecosystem: 'pip'
directory: '/'
schedule:
interval: 'daily'
cooldown:
default-days: 1
4 changes: 3 additions & 1 deletion .github/workflows/check_api_ref.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,9 @@ jobs:
- name: Install Hatch
if: steps.changed.outputs.needs_check == 'true'
run: pip install hatch
run: |
python -m pip install --upgrade pip
pip install hatch --uploaded-prior-to=P1D
- name: Generate API references
if: steps.changed.outputs.needs_check == 'true'
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/docs-website-test-docs-snippets.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,15 +38,17 @@ jobs:
python-version: '3.11'

- name: Install Hatch
run: pip install hatch==${{ env.HATCH_VERSION }}
run: |
python -m pip install --upgrade pip
pip install hatch==${{ env.HATCH_VERSION }} --uploaded-prior-to=P1D

- name: Generate API reference for Docusaurus
run: hatch run docs

- name: Install base dependencies
run: |
python -m pip install --upgrade pip
pip install requests toml
pip install requests toml --uploaded-prior-to=P1D

- name: Run snippet tests (verbose)
shell: bash
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/docs_search_sync.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,9 @@ jobs:
- name: Install script dependencies
# sniffio is needed because of https://github.com/deepset-ai/deepset-cloud-sdk/issues/286
# we pin pyrate-limiter due to https://github.com/deepset-ai/deepset-cloud-sdk/issues/295
run: pip install deepset-cloud-sdk sniffio requests "pyrate-limiter<4"
run: |
python -m pip install --upgrade pip
pip install deepset-cloud-sdk sniffio requests "pyrate-limiter<4" --uploaded-prior-to=P1D
- name: Update new docs to Search pipeline and remove outdated docs
env:
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/docusaurus_sync.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,9 @@ jobs:
python-version: "${{ env.PYTHON_VERSION }}"

- name: Install Hatch
run: pip install hatch==${{ env.HATCH_VERSION }}
run: |
python -m pip install --upgrade pip
pip install hatch==${{ env.HATCH_VERSION }} --uploaded-prior-to=P1D
- name: Generate API reference for Docusaurus
run: hatch run docs
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,9 @@ jobs:
python-version: "${{ env.PYTHON_VERSION }}"

- name: Install Hatch
run: pip install hatch==${{ env.HATCH_VERSION }}
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
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/github_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
- name: Install reno
run: |
python -m pip install --upgrade pip
pip install "reno<5"
pip install "reno<5" --uploaded-prior-to=P1D
# Remove next version rc0 tag in the CI environment to prevent reno from assigning notes to future releases.
# This ensures release notes are correctly aggregated for the current version.
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/license_compliance.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ jobs:

- name: Get direct dependencies
run: |
pip install toml
python -m pip install --upgrade pip
pip install toml --uploaded-prior-to=P1D
python .github/utils/pyproject_to_requirements.py pyproject.toml > ${{ env.REQUIREMENTS_FILE }}
- name: Check Licenses
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/nightly_testpypi_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,9 @@ jobs:
echo "Building haystack-ai version: ${NIGHTLY_VERSION}"
- name: Install Hatch
run: pip install hatch==${{ env.HATCH_VERSION }}
run: |
python -m pip install --upgrade pip
pip install hatch==${{ env.HATCH_VERSION }} --uploaded-prior-to=P1D
- name: Build Haystack
run: hatch build
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/pypi_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,9 @@ jobs:
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2

- name: Install Hatch
run: pip install hatch==${{ env.HATCH_VERSION }}
run: |
python -m pip install --upgrade pip
pip install hatch==${{ env.HATCH_VERSION }} --uploaded-prior-to=P1D
- name: Build Haystack
run: hatch build
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,9 @@ jobs:
python-version: "3.13"

- name: Install tomlkit
run: pip install tomlkit
run: |
python -m pip install --upgrade pip
pip install tomlkit --uploaded-prior-to=P1D
- name: Update haystack-ai in uv.lock
run: python haystack/.github/utils/update_haystack_dc_custom_nodes.py "${{ env.VERSION }}" deepset-cloud-custom-nodes/uv.lock
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/release_notes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,8 @@ jobs:
- name: Verify release notes formatting
if: steps.changed-files.outputs.any_changed == 'true' && !contains( github.event.pull_request.labels.*.name, 'ignore-for-release-notes')
run: |
pip install "reno<5"
python -m pip install --upgrade pip
pip install "reno<5" --uploaded-prior-to=P1D
reno lint . # it is not possible to pass a list of files to reno lint
- name: Check reStructuredText code formatting
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/slow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,8 @@ jobs:
id: hatch
shell: bash
run: |
pip install hatch==${{ env.HATCH_VERSION }}
python -m pip install --upgrade pip
pip install hatch==${{ env.HATCH_VERSION }} --uploaded-prior-to=P1D
- name: Run Tika
if: matrix.os == 'ubuntu-latest'
Expand Down
23 changes: 16 additions & 7 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,9 @@ jobs:
python-version: "${{ env.PYTHON_VERSION }}"

- name: Install Hatch
run: pip install hatch==${{ env.HATCH_VERSION }}
run: |
python -m pip install --upgrade pip
pip install hatch==${{ env.HATCH_VERSION }} --uploaded-prior-to=P1D

- name: Ruff - check format and linting
run: hatch run fmt-check
Expand All @@ -97,7 +99,9 @@ jobs:
python-version: "${{ env.PYTHON_VERSION }}"

- name: Install Hatch
run: pip install hatch==${{ env.HATCH_VERSION }}
run: |
python -m pip install --upgrade pip
pip install hatch==${{ env.HATCH_VERSION }} --uploaded-prior-to=P1D

- name: Check imports
run: hatch run python .github/utils/check_imports.py
Expand Down Expand Up @@ -125,7 +129,8 @@ jobs:
id: hatch
shell: bash
run: |
pip install hatch==${{ env.HATCH_VERSION }}
python -m pip install --upgrade pip
pip install hatch==${{ env.HATCH_VERSION }} --uploaded-prior-to=P1D
echo "env=$(hatch env find test)" >> "$GITHUB_OUTPUT"

- name: Run
Expand Down Expand Up @@ -177,7 +182,8 @@ jobs:
id: hatch
if: steps.files.outputs.any_changed == 'true'
run: |
pip install hatch==${{ env.HATCH_VERSION }}
python -m pip install --upgrade pip
pip install hatch==${{ env.HATCH_VERSION }} --uploaded-prior-to=P1D
echo "env=$(hatch env find test)" >> "$GITHUB_OUTPUT"

- name: Mypy
Expand All @@ -202,7 +208,8 @@ jobs:
id: hatch
shell: bash
run: |
pip install hatch==${{ env.HATCH_VERSION }}
python -m pip install --upgrade pip
pip install hatch==${{ env.HATCH_VERSION }} --uploaded-prior-to=P1D
echo "env=$(hatch env find test)" >> "$GITHUB_OUTPUT"


Expand All @@ -228,7 +235,8 @@ jobs:
id: hatch
shell: bash
run: |
pip install hatch==${{ env.HATCH_VERSION }}
python -m pip install --upgrade pip
pip install hatch==${{ env.HATCH_VERSION }} --uploaded-prior-to=P1D
echo "env=$(hatch env find test)" >> "$GITHUB_OUTPUT"

- uses: actions/cache/restore@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5.0.5
Expand Down Expand Up @@ -260,7 +268,8 @@ jobs:
id: hatch
shell: bash
run: |
pip install hatch==${{ env.HATCH_VERSION }}
python -m pip install --upgrade pip
pip install hatch==${{ env.HATCH_VERSION }} --uploaded-prior-to=P1D
echo "env=$(hatch env find test)" >> "$GITHUB_OUTPUT"

- name: Run
Expand Down
8 changes: 8 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -363,5 +363,13 @@ ignore = [
"test/tools/test_parameters_schema_utils.py" = ["UP007"]
"test/utils/test_type_serialization.py" = ["UP006", "UP007", "UP035", "UP045"]

[tool.uv]
Comment thread
anakin87 marked this conversation as resolved.
# Exclude package versions published within the last 24 hours to protect against supply chain
# attacks via compromised dependencies. uv resolves this relative to the current clock at
# install/lock time, so no manual date updates are needed.
# First-party packages are exempted so freshly published releases are always resolvable.
exclude-newer = "24 hours"
exclude-newer-package = { haystack-experimental = "0 days", haystack-pydoc-tools = "0 days" }

[tool.coverage.run]
omit = ["haystack/testing/*"]
Loading