1212 - ready_for_review
1313 workflow_dispatch :
1414
15+ env :
16+ UV_VERSION : " 0.9.11"
17+
1518jobs :
1619 lint :
1720 runs-on : ubuntu-latest
1821 timeout-minutes : 10
1922 steps :
2023 - uses : actions/checkout@v4
21- - name : Set up Python
22- uses : actions /setup-python@v5
24+ - name : Install uv
25+ uses : astral-sh /setup-uv@v6
2326 with :
24- python- version : " 3.10 "
27+ version : ${{ env.UV_VERSION }}
2528 - name : Install dependencies
2629 run : |
27- pip install . --group lint
30+ uv sync --group lint
2831 - name : Lint Python code with ruff
2932 run : |
30- ruff check .
31- ruff format --check .
33+ uv run ruff check .
34+ uv run ruff format --check .
3235
3336 core_test :
3437 runs-on : ubuntu-latest
38+ name : core_test python-${{ matrix.python-version }}
3539 strategy :
3640 matrix :
3741 python-version : ["3.10", "3.11", "3.12"]
3842 timeout-minutes : 20
3943 steps :
4044 - name : Checkout code
4145 uses : actions/checkout@v4
42- - name : Set up Python
43- uses : actions /setup-python@v5
46+ - name : Install uv
47+ uses : astral-sh /setup-uv@v6
4448 with :
49+ version : ${{ env.UV_VERSION }}
4550 python-version : ${{ matrix.python-version }}
46- - name : Install dependencies
47- run : |
48- pip install ".[memory]" --group dev
4951 - name : Run tests
5052 run : |
51- pytest tests/
53+ uv run --exact --group integration --extra memory pytest tests/
5254
5355 langchain_test :
5456 runs-on : ubuntu-latest
@@ -59,17 +61,15 @@ jobs:
5961 steps :
6062 - name : Checkout code
6163 uses : actions/checkout@v4
62- - name : Set up Python
63- uses : actions /setup-python@v5
64+ - name : Install uv
65+ uses : astral-sh /setup-uv@v6
6466 with :
67+ version : ${{ env.UV_VERSION }}
6568 python-version : ${{ matrix.python-version }}
66- - name : Install dependencies
67- run : |
68- pip install .
69- pip install integrations/langchain --group dev
7069 - name : Run tests
70+ working-directory : integrations/langchain
7171 run : |
72- pytest integrations/langchain/ tests/unit_tests
72+ uv run --exact --group integration pytest tests/unit_tests
7373
7474 lakebase_memory_test :
7575 runs-on : ubuntu-latest
@@ -80,18 +80,18 @@ jobs:
8080 steps :
8181 - name : Checkout code
8282 uses : actions/checkout@v4
83- - name : Set up Python
84- uses : actions /setup-python@v5
83+ - name : Install uv
84+ uses : astral-sh /setup-uv@v6
8585 with :
86+ version : ${{ env.UV_VERSION }}
8687 python-version : ${{ matrix.python-version }}
87- - name : Install dependencies
88+ - name : Run databricks-ai-bridge Tests
8889 run : |
89- pip install .[ memory]
90- pip install "integrations/ langchain[memory]" --group dev
91- - name : Run tests
90+ uv run --exact --group integration --extra memory pytest tests/databricks_ai_bridge/test_lakebase.py
91+ - name : Run databricks- langchain Tests
92+ working-directory : integrations/langchain
9293 run : |
93- pytest tests/databricks_ai_bridge/test_lakebase.py
94- pytest integrations/langchain/tests/unit_tests/test_checkpoint.py
94+ uv run --exact --group integration --extra memory pytest integrations/langchain/tests/unit_tests/test_checkpoint.py
9595
9696 langchain_cross_version_test :
9797 runs-on : ubuntu-latest
@@ -149,17 +149,15 @@ jobs:
149149 steps :
150150 - name : Checkout code
151151 uses : actions/checkout@v4
152- - name : Set up Python
153- uses : actions /setup-python@v5
152+ - name : Install uv
153+ uses : astral-sh /setup-uv@v6
154154 with :
155+ version : ${{ env.UV_VERSION }}
155156 python-version : ${{ matrix.python-version }}
156- - name : Install dependencies
157- run : |
158- pip install .
159- pip install integrations/openai --group dev
160157 - name : Run tests
158+ working-directory : integrations/openai
161159 run : |
162- pytest integrations/openai/ tests/unit_tests
160+ uv run --exact --group integration pytest tests/unit_tests
163161
164162 openai_cross_version_test :
165163 runs-on : ubuntu-latest
@@ -214,17 +212,15 @@ jobs:
214212 steps :
215213 - name : Checkout code
216214 uses : actions/checkout@v4
217- - name : Set up Python
218- uses : actions /setup-python@v5
215+ - name : Install uv
216+ uses : astral-sh /setup-uv@v6
219217 with :
218+ version : ${{ env.UV_VERSION }}
220219 python-version : ${{ matrix.python-version }}
221- - name : Install dependencies
222- run : |
223- pip install .
224- pip install integrations/llamaindex --group dev
225220 - name : Run tests
221+ working-directory : integrations/llamaindex
226222 run : |
227- pytest integrations/llamaindex/ tests/unit_tests
223+ uv run --exact --group integration pytest tests/unit_tests
228224
229225 mcp_test :
230226 runs-on : ubuntu-latest
@@ -235,17 +231,15 @@ jobs:
235231 steps :
236232 - name : Checkout code
237233 uses : actions/checkout@v4
238- - name : Set up Python
239- uses : actions /setup-python@v5
234+ - name : Install uv
235+ uses : astral-sh /setup-uv@v6
240236 with :
237+ version : ${{ env.UV_VERSION }}
241238 python-version : ${{ matrix.python-version }}
242- - name : Install dependencies
243- run : |
244- pip install .
245- pip install -e databricks_mcp --group dev
246239 - name : Run tests
240+ working-directory : databricks_mcp
247241 run : |
248- pytest databricks_mcp/ tests/unit_tests
242+ uv run --exact --group integration pytest tests/unit_tests
249243
250244 dspy_test :
251245 runs-on : ubuntu-latest
@@ -256,14 +250,12 @@ jobs:
256250 steps :
257251 - name : Checkout code
258252 uses : actions/checkout@v4
259- - name : Set up Python
260- uses : actions /setup-python@v5
253+ - name : Install uv
254+ uses : astral-sh /setup-uv@v6
261255 with :
256+ version : ${{ env.UV_VERSION }}
262257 python-version : ${{ matrix.python-version }}
263- - name : Install dependencies
264- run : |
265- pip install .
266- pip install integrations/dspy --group dev
267258 - name : Run tests
259+ working-directory : integrations/dspy
268260 run : |
269- pytest integrations/dspy/ tests/unit_tests
261+ uv run --exact --group integration pytest tests/unit_tests
0 commit comments