Skip to content

Commit 819c78a

Browse files
build: pin version for pymongo and haystack in MongoDB integration (#1832)
* pinning to older version o haystack and mongodb * pinining haystack and pymongo * wip * fixing format * adding missing CI job * making sure lowest version of pymongo has the async client * making sure lowest version of pymongo has the async client * versioning * haysack 2.9 * haysack 2.10 * haysack 2.11
1 parent 33cd172 commit 819c78a

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

.github/workflows/mongodb_atlas.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,16 @@ jobs:
5858
- name: Run tests
5959
run: hatch run cov-retry
6060

61+
- name: Run unit tests with lowest direct dependencies
62+
run: |
63+
hatch run uv pip compile pyproject.toml --resolution lowest-direct --output-file requirements_lowest_direct.txt
64+
hatch run uv pip install -r requirements_lowest_direct.txt
65+
hatch run test -m "not integration"
66+
6167
- name: Nightly - run unit tests with Haystack main branch
6268
if: github.event_name == 'schedule'
6369
run: |
70+
hatch env prune
6471
hatch run uv pip install git+https://github.com/deepset-ai/haystack.git@main
6572
hatch run cov-retry -m "not integration"
6673

integrations/mongodb_atlas/pyproject.toml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,10 @@ classifiers = [
2323
"Programming Language :: Python :: Implementation :: CPython",
2424
"Programming Language :: Python :: Implementation :: PyPy",
2525
]
26-
dependencies = ["haystack-ai>=2.11.0", "pymongo[srv]"]
26+
dependencies = [
27+
"haystack-ai>=2.11.0",
28+
"pymongo[srv]>=4.13.0"
29+
]
2730

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

0 commit comments

Comments
 (0)