Skip to content

Commit 2c5b53d

Browse files
committed
chore: use lowest for package resolution
1 parent 6147b6e commit 2c5b53d

File tree

7 files changed

+58
-36
lines changed

7 files changed

+58
-36
lines changed

.github/workflows/main.yml

Lines changed: 34 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,11 @@ jobs:
3535
3636
core_test:
3737
runs-on: ubuntu-latest
38-
name: core_test python-${{ matrix.python-version }}
38+
name: "core_test (python: ${{ matrix.python-version }}, uv: ${{ matrix.uv-resolution }})"
3939
strategy:
4040
matrix:
4141
python-version: ["3.10", "3.11", "3.12"]
42+
uv-resolution: ["lowest-direct", "highest"]
4243
timeout-minutes: 20
4344
steps:
4445
- name: Checkout code
@@ -50,13 +51,18 @@ jobs:
5051
python-version: ${{ matrix.python-version }}
5152
- name: Run tests
5253
run: |
53-
uv run --exact --group integration --extra memory pytest tests/
54+
uv run --resolution ${{ matrix.uv-resolution }} \
55+
--exact --group integration --extra memory \
56+
pytest tests/
5457
5558
langchain_test:
5659
runs-on: ubuntu-latest
60+
name: "langchain_test (python: ${{ matrix.python-version }}, uv: ${{ matrix.uv-resolution }})"
5761
strategy:
5862
matrix:
5963
python-version: ["3.10"]
64+
uv-resolution: ["lowest-direct", "highest"]
65+
6066
timeout-minutes: 20
6167
steps:
6268
- name: Checkout code
@@ -69,13 +75,16 @@ jobs:
6975
- name: Run tests
7076
working-directory: integrations/langchain
7177
run: |
72-
uv run --exact --group integration pytest tests/unit_tests
78+
uv run --resolution ${{ matrix.uv-resolution }} \
79+
--exact --group integration pytest tests/unit_tests
7380
7481
lakebase_memory_test:
7582
runs-on: ubuntu-latest
83+
name: "lakebase_memory_test (python: ${{ matrix.python-version }}, uv: ${{ matrix.uv-resolution }})"
7684
strategy:
7785
matrix:
7886
python-version: ["3.10"]
87+
uv-resolution: ["lowest-direct", "highest"]
7988
timeout-minutes: 20
8089
steps:
8190
- name: Checkout code
@@ -87,11 +96,15 @@ jobs:
8796
python-version: ${{ matrix.python-version }}
8897
- name: Run databricks-ai-bridge Tests
8998
run: |
90-
uv run --exact --group integration --extra memory pytest tests/databricks_ai_bridge/test_lakebase.py
99+
uv run --resolution ${{ matrix.uv-resolution }} \
100+
--exact --group integration --extra memory \
101+
pytest tests/databricks_ai_bridge/test_lakebase.py
91102
- name: Run databricks-langchain Tests
92103
working-directory: integrations/langchain
93104
run: |
94-
uv run --exact --group integration --extra memory pytest tests/unit_tests/test_checkpoint.py
105+
uv run --resolution ${{ matrix.uv-resolution }} \
106+
--exact --group integration --extra memory \
107+
pytest tests/unit_tests/test_checkpoint.py
95108
96109
langchain_cross_version_test:
97110
runs-on: ubuntu-latest
@@ -142,9 +155,11 @@ jobs:
142155
143156
openai_test:
144157
runs-on: ubuntu-latest
158+
name: "openai_test (python: ${{ matrix.python-version }}, uv: ${{ matrix.uv-resolution }})"
145159
strategy:
146160
matrix:
147161
python-version: ["3.10"]
162+
uv-resolution: ["lowest-direct", "highest"]
148163
timeout-minutes: 20
149164
steps:
150165
- name: Checkout code
@@ -157,7 +172,8 @@ jobs:
157172
- name: Run tests
158173
working-directory: integrations/openai
159174
run: |
160-
uv run --exact --group integration pytest tests/unit_tests
175+
uv run --resolution ${{ matrix.uv-resolution }} \
176+
--exact --group integration pytest tests/unit_tests
161177
162178
openai_cross_version_test:
163179
runs-on: ubuntu-latest
@@ -178,9 +194,6 @@ jobs:
178194
uses: actions/setup-python@v5
179195
with:
180196
python-version: ${{ matrix.python-version }}
181-
- name: Install dependencies
182-
run: |
183-
pip install . "${{ matrix.version.mlflow }}"
184197
- name: Checkout openai version
185198
uses: actions/checkout@v4
186199
with:
@@ -198,16 +211,19 @@ jobs:
198211
run: |
199212
pip install .
200213
pip install integrations/openai --group dev
214+
pip install "${{ matrix.version.mlflow }}"
201215
- name: Run tests
202216
run: |
203217
# Only testing initialization since functionality can change
204218
pytest integrations/openai/tests/unit_tests/test_vector_search_retriever_tool.py::test_vector_search_retriever_tool_init
205219
206220
llamaindex_test:
207221
runs-on: ubuntu-latest
222+
name: "llamaindex_test (python: ${{ matrix.python-version }}, uv: ${{ matrix.uv-resolution }})"
208223
strategy:
209224
matrix:
210225
python-version: ["3.10"]
226+
uv-resolution: ["lowest-direct", "highest"]
211227
timeout-minutes: 20
212228
steps:
213229
- name: Checkout code
@@ -220,13 +236,15 @@ jobs:
220236
- name: Run tests
221237
working-directory: integrations/llamaindex
222238
run: |
223-
uv run --exact --group integration pytest tests/unit_tests
239+
uv run --resolution ${{ matrix.uv-resolution }} --exact --group integration pytest tests/unit_tests
224240
225241
mcp_test:
226242
runs-on: ubuntu-latest
243+
name: "mcp_test (python: ${{ matrix.python-version }}, uv: ${{ matrix.uv-resolution }})"
227244
strategy:
228245
matrix:
229246
python-version: ["3.10"]
247+
uv-resolution: ["lowest-direct", "highest"]
230248
timeout-minutes: 20
231249
steps:
232250
- name: Checkout code
@@ -239,13 +257,16 @@ jobs:
239257
- name: Run tests
240258
working-directory: databricks_mcp
241259
run: |
242-
uv run --exact --group integration pytest tests/unit_tests
260+
uv run --resolution ${{ matrix.uv-resolution }} \
261+
--exact --group integration pytest tests/unit_tests
243262
244263
dspy_test:
245264
runs-on: ubuntu-latest
265+
name: "dspy_test (python: ${{ matrix.python-version }}, uv: ${{ matrix.uv-resolution }})"
246266
strategy:
247267
matrix:
248268
python-version: ["3.10"]
269+
uv-resolution: ["lowest-direct", "highest"]
249270
timeout-minutes: 20
250271
steps:
251272
- name: Checkout code
@@ -258,4 +279,5 @@ jobs:
258279
- name: Run tests
259280
working-directory: integrations/dspy
260281
run: |
261-
uv run --exact --group integration pytest tests/unit_tests
282+
uv run --resolution ${{ matrix.uv-resolution }} \
283+
--exact --group integration pytest tests/unit_tests

databricks_mcp/pyproject.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,23 +9,23 @@ readme = "README.md"
99
license = { text="Apache-2.0" }
1010
requires-python = ">=3.10"
1111
dependencies = [
12-
"mcp>=1.9.1",
12+
"mcp>=1.13.0",
1313
"databricks-sdk>=0.49.0",
1414
"databricks-ai-bridge>=0.4.2",
1515
"mlflow>=3.1"
1616
]
1717

1818
[dependency-groups]
1919
dev = [
20-
"typing_extensions",
20+
"typing_extensions>=4.15.0",
2121
"databricks-sdk>=0.49.0",
2222
"ruff==0.6.4",
2323
{ include-group = "integration" }
2424
]
2525

2626
integration = [
27-
"pytest",
28-
"pytest-asyncio",
27+
"pytest>=9.0.0",
28+
"pytest-asyncio>=1.3.0",
2929
"pytest-timeout>=2.3.1",
3030
]
3131

integrations/dspy/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ dev = [
2020
{ include-group = "integration" }
2121
]
2222
integration = [
23-
"pytest",
23+
"pytest>=9.0.0",
2424
]
2525

2626
[build-system]

integrations/langchain/pyproject.toml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ dependencies = [
1212
"langchain>=1.0.0",
1313
"databricks-vectorsearch>=0.50",
1414
"databricks-ai-bridge>=0.4.2",
15-
"mlflow>=2.20.1",
15+
"mlflow>=3.0.0",
1616
"pydantic>2.10.0",
1717
"unitycatalog-langchain[databricks]>=0.3.0",
1818
"databricks-sdk>=0.65.0",
@@ -27,17 +27,17 @@ memory = [
2727

2828
[dependency-groups]
2929
dev = [
30-
"typing_extensions",
30+
"typing_extensions>=4.15.0",
3131
"ruff==0.6.4",
3232
{ include-group = "integration" }
3333
]
3434

3535
integration = [
36-
"pytest",
36+
"pytest>=9.0.0",
3737
"langgraph>=0.2.27",
3838
"pytest-timeout>=2.3.1",
39-
"pytest-asyncio",
40-
"anyio",
39+
"pytest-asyncio>=1.3.0",
40+
"anyio>=4.8.0",
4141
]
4242

4343

integrations/llamaindex/pyproject.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,20 +11,20 @@ requires-python = ">=3.10"
1111
dependencies = [
1212
"databricks-vectorsearch>=0.40",
1313
"databricks-ai-bridge>=0.1.0",
14-
"llama-index>=0.11.0",
14+
"llama-index>=0.12.0",
1515
"unitycatalog-llamaindex[databricks]>=0.2.0",
1616
]
1717

1818
[dependency-groups]
1919
dev = [
20-
"typing_extensions",
20+
"typing_extensions>=4.15.0",
2121
"databricks-sdk>=0.34.0",
2222
"ruff==0.6.4",
2323
{ include-group = "integration" }
2424
]
2525

2626
integration = [
27-
"pytest",
27+
"pytest>=9.0.0",
2828
"pytest-timeout>=2.3.1",
2929
]
3030

integrations/openai/pyproject.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,15 +22,15 @@ dependencies = [
2222

2323
[dependency-groups]
2424
dev = [
25-
"typing_extensions",
25+
"typing_extensions>=4.15.0",
2626
"databricks-sdk>=0.34.0",
2727
"ruff==0.6.4",
2828
{ include-group = "integration" }
2929
]
3030

3131
integration = [
32-
"pytest",
33-
"pytest-asyncio",
32+
"pytest>=9.0.0",
33+
"pytest-asyncio>=1.3.0",
3434
"pytest-timeout>=2.3.1",
3535
]
3636

pyproject.toml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@ authors = [
88
readme = "README.md"
99
requires-python = ">=3.10"
1010
dependencies = [
11-
"typing_extensions",
12-
"pydantic",
11+
"typing_extensions>=4.15.0",
12+
"pydantic>=2.10.0",
1313
"databricks-sdk>=0.49.0",
1414
"databricks-vectorsearch>=0.57",
15-
"pandas",
15+
"pandas>=2.2.0",
1616
"tiktoken>=0.8.0",
1717
"tabulate>=0.9.0",
1818
"mlflow-skinny>=2.19.0",
@@ -23,19 +23,19 @@ file = "LICENSE.txt"
2323

2424
[project.optional-dependencies]
2525
memory = [
26-
"psycopg[binary,pool]>=3.1",
26+
"psycopg[binary,pool]>=3.2.10",
2727
]
2828

2929
[dependency-groups]
3030
dev = [
31-
"hatch",
31+
"hatch>=1.15.1",
3232
{ include-group = "integration" },
3333
{ include-group = "lint" },
3434
]
3535
integration = [
36-
"mlflow",
37-
"pytest",
38-
"pytest-asyncio",
36+
"mlflow>=3.0.0",
37+
"pytest>=9.0.0",
38+
"pytest-asyncio>=1.3.0",
3939
]
4040
doc = [
4141
"docutils>=0.21.2",

0 commit comments

Comments
 (0)