Skip to content

Commit 5ad8622

Browse files
authored
build: add pins for Pgvector (#1849)
1 parent f273e2f commit 5ad8622

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

.github/workflows/pgvector.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,16 @@ jobs:
6464
- name: Run tests
6565
run: hatch run cov-retry
6666

67+
- name: Run unit tests with lowest direct dependencies
68+
run: |
69+
hatch run uv pip compile pyproject.toml --resolution lowest-direct --output-file requirements_lowest_direct.txt
70+
hatch run uv pip install -r requirements_lowest_direct.txt
71+
hatch run test -m "not integration"
72+
6773
- name: Nightly - run unit tests with Haystack main branch
6874
if: github.event_name == 'schedule'
6975
run: |
76+
hatch env prune
7077
hatch run uv pip install git+https://github.com/deepset-ai/haystack.git@main
7178
hatch run cov-retry -m "not integration"
7279

integrations/pgvector/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ classifiers = [
2323
"Programming Language :: Python :: Implementation :: CPython",
2424
"Programming Language :: Python :: Implementation :: PyPy",
2525
]
26-
dependencies = ["haystack-ai>=2.11.0", "pgvector", "psycopg[binary]"]
26+
dependencies = ["haystack-ai>=2.11.0", "pgvector>=0.3.0", "psycopg[binary]"]
2727

2828
[project.urls]
2929
Source = "https://github.com/deepset-ai/haystack-core-integrations"

0 commit comments

Comments
 (0)