Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
11 changes: 8 additions & 3 deletions .github/workflows/check_api_ref.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,13 +63,18 @@ jobs:
with open(os.environ["GITHUB_OUTPUT"], "a") as f:
f.write(f"needs_check={str(needs_check).lower()}\n")

- name: Install Hatch
- uses: astral-sh/setup-uv@08807647e7069bb48b6ef5acd8ec9567f424441b # v8.1.0
if: steps.changed.outputs.needs_check == 'true'
run: pip install hatch
with:
python-version: "3.13"

- name: Sync dev dependencies
if: steps.changed.outputs.needs_check == 'true'
run: uv sync --group dev

- name: Generate API references
if: steps.changed.outputs.needs_check == 'true'
run: hatch run docs
run: uv run haystack-pydoc pydoc tmp_api_reference

- name: Set up Node.js
if: steps.changed.outputs.needs_check == 'true'
Expand Down
21 changes: 6 additions & 15 deletions .github/workflows/docs-website-test-docs-snippets.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ on:
type: string

env:
HATCH_VERSION: "1.16.5"
PYTHON_VERSION: "3.11"

jobs:
Expand All @@ -32,26 +31,18 @@ jobs:
- name: Checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2

- name: Setup Python
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
- uses: astral-sh/setup-uv@08807647e7069bb48b6ef5acd8ec9567f424441b # v8.1.0
with:
python-version: '3.11'
python-version: "${{ env.PYTHON_VERSION }}"

- name: Install Hatch
run: pip install hatch==${{ env.HATCH_VERSION }}
- name: Sync dev and test dependencies
run: uv sync --group dev --group test

- 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
run: uv run haystack-pydoc pydoc tmp_api_reference

- name: Run snippet tests (verbose)
shell: bash
run: |
hatch -e test env run -- python docs-website/scripts/test_python_snippets.py --verbose tmp_api_reference/
run: uv run --with requests python docs-website/scripts/test_python_snippets.py --verbose tmp_api_reference/

notify-slack-on-failure:
if: failure() && github.ref_name == 'main'
Expand Down
10 changes: 4 additions & 6 deletions .github/workflows/docusaurus_sync.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ on:
- ".github/workflows/docusaurus_sync.yml"

env:
HATCH_VERSION: "1.16.5"
PYTHON_VERSION: "3.11"

jobs:
Expand All @@ -24,16 +23,15 @@ jobs:
- name: Checkout Haystack repo
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2

- name: Set up Python
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
- uses: astral-sh/setup-uv@08807647e7069bb48b6ef5acd8ec9567f424441b # v8.1.0
with:
python-version: "${{ env.PYTHON_VERSION }}"

- name: Install Hatch
run: pip install hatch==${{ env.HATCH_VERSION }}
- name: Sync dev dependencies
run: uv sync --group dev

- name: Generate API reference for Docusaurus
run: hatch run docs
run: uv run haystack-pydoc pydoc tmp_api_reference

- name: Sync generated API reference to docs folder
run: |
Expand Down
9 changes: 4 additions & 5 deletions .github/workflows/e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ on:
env:
PYTHON_VERSION: "3.10"
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
HATCH_VERSION: "1.16.5"
# we use HF_TOKEN instead of HF_API_TOKEN to work around a Hugging Face bug
# see https://github.com/deepset-ai/haystack/issues/9552
HF_TOKEN: ${{ secrets.HUGGINGFACE_API_KEY }}
Expand All @@ -29,15 +28,15 @@ jobs:
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2

- uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
- uses: astral-sh/setup-uv@08807647e7069bb48b6ef5acd8ec9567f424441b # v8.1.0
with:
python-version: "${{ env.PYTHON_VERSION }}"

- name: Install Hatch
run: pip install hatch==${{ env.HATCH_VERSION }}
- name: Sync e2e dependencies
run: uv sync --group e2e

- name: Run tests
run: hatch run e2e:test
run: uv run pytest e2e

- name: Notify Slack on nightly failure
if: failure() && github.event_name == 'schedule'
Expand Down
8 changes: 2 additions & 6 deletions .github/workflows/nightly_testpypi_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,6 @@ on:
- cron: "0 0 * * *"
workflow_dispatch:

env:
HATCH_VERSION: "1.16.5"

jobs:
nightly-release:
runs-on: ubuntu-latest
Expand All @@ -35,11 +32,10 @@ jobs:
echo "${NIGHTLY_VERSION}" > VERSION.txt
echo "Building haystack-ai version: ${NIGHTLY_VERSION}"

- name: Install Hatch
run: pip install hatch==${{ env.HATCH_VERSION }}
- uses: astral-sh/setup-uv@08807647e7069bb48b6ef5acd8ec9567f424441b # v8.1.0

- name: Build Haystack
run: hatch build
run: uv build

- name: Publish to PyPI
uses: pypa/gh-action-pypi-publish@cef221092ed1bacb1cc03d23a2d87d1d172e277b # v1.14.0
8 changes: 2 additions & 6 deletions .github/workflows/pypi_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,6 @@ on:
# We must not release versions tagged with -rc0 suffix
- "!v[0-9]+.[0-9]+.[0-9]-rc0"

env:
HATCH_VERSION: "1.16.5"

jobs:
release-on-pypi:
runs-on: ubuntu-latest
Expand All @@ -21,11 +18,10 @@ jobs:
- name: Checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2

- name: Install Hatch
run: pip install hatch==${{ env.HATCH_VERSION }}
- uses: astral-sh/setup-uv@08807647e7069bb48b6ef5acd8ec9567f424441b # v8.1.0

- name: Build Haystack
run: hatch build
run: uv build

- name: Publish on PyPi
uses: pypa/gh-action-pypi-publish@cef221092ed1bacb1cc03d23a2d87d1d172e277b # v1.14.0
12 changes: 4 additions & 8 deletions .github/workflows/slow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
HF_API_TOKEN: ${{ secrets.HUGGINGFACE_API_KEY }}
PYTHON_VERSION: "3.10"
HATCH_VERSION: "1.16.5"
HAYSTACK_MPS_ENABLED: false
HAYSTACK_XPU_ENABLED: false

Expand Down Expand Up @@ -131,15 +130,12 @@ jobs:
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2

- uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
- uses: astral-sh/setup-uv@08807647e7069bb48b6ef5acd8ec9567f424441b # v8.1.0
with:
python-version: "${{ env.PYTHON_VERSION }}"

- name: Install Hatch
id: hatch
shell: bash
run: |
pip install hatch==${{ env.HATCH_VERSION }}
- name: Sync test dependencies
run: uv sync --group test

- name: Run Tika
if: matrix.os == 'ubuntu-latest'
Expand All @@ -151,7 +147,7 @@ jobs:
run: ${{ matrix.install_cmd }}

- name: Run tests
run: hatch run test:integration-only-slow
run: uv run pytest --maxfail=5 -m "integration and slow" test

- name: Notify Slack on nightly failure
if: failure() && github.event_name == 'schedule'
Expand Down
Loading
Loading