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,16 @@ 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- run : |
89- pip install .[memory]
90- pip install "integrations/langchain[memory]" --group dev
91- - name : Run tests
88+ - name : Run Tests
9289 run : |
93- pytest tests/databricks_ai_bridge/test_lakebase.py
94- pytest integrations/langchain/tests/unit_tests/test_checkpoint.py
90+ uv run --exact --group integration --extra memory pytest \
91+ tests/databricks_ai_bridge/test_lakebase.py \
92+ integrations/langchain/tests/unit_tests/test_checkpoint.py
9593
9694 langchain_cross_version_test :
9795 runs-on : ubuntu-latest
@@ -149,17 +147,15 @@ jobs:
149147 steps :
150148 - name : Checkout code
151149 uses : actions/checkout@v4
152- - name : Set up Python
153- uses : actions /setup-python@v5
150+ - name : Install uv
151+ uses : astral-sh /setup-uv@v6
154152 with :
153+ version : ${{ env.UV_VERSION }}
155154 python-version : ${{ matrix.python-version }}
156- - name : Install dependencies
157- run : |
158- pip install .
159- pip install integrations/openai --group dev
160155 - name : Run tests
156+ working-directory : integrations/openai
161157 run : |
162- pytest integrations/openai/ tests/unit_tests
158+ uv run --exact --group integration pytest tests/unit_tests
163159
164160 openai_cross_version_test :
165161 runs-on : ubuntu-latest
@@ -214,17 +210,15 @@ jobs:
214210 steps :
215211 - name : Checkout code
216212 uses : actions/checkout@v4
217- - name : Set up Python
218- uses : actions /setup-python@v5
213+ - name : Install uv
214+ uses : astral-sh /setup-uv@v6
219215 with :
216+ version : ${{ env.UV_VERSION }}
220217 python-version : ${{ matrix.python-version }}
221- - name : Install dependencies
222- run : |
223- pip install .
224- pip install integrations/llamaindex --group dev
225218 - name : Run tests
219+ working-directory : integrations/llamaindex
226220 run : |
227- pytest integrations/llamaindex/ tests/unit_tests
221+ uv run --exact --group integration pytest tests/unit_tests
228222
229223 mcp_test :
230224 runs-on : ubuntu-latest
@@ -235,17 +229,15 @@ jobs:
235229 steps :
236230 - name : Checkout code
237231 uses : actions/checkout@v4
238- - name : Set up Python
239- uses : actions /setup-python@v5
232+ - name : Install uv
233+ uses : astral-sh /setup-uv@v6
240234 with :
235+ version : ${{ env.UV_VERSION }}
241236 python-version : ${{ matrix.python-version }}
242- - name : Install dependencies
243- run : |
244- pip install .
245- pip install -e databricks_mcp --group dev
246237 - name : Run tests
238+ working-directory : databricks_mcp
247239 run : |
248- pytest databricks_mcp/ tests/unit_tests
240+ uv run --exact --group integration pytest tests/unit_tests
249241
250242 dspy_test :
251243 runs-on : ubuntu-latest
@@ -256,14 +248,12 @@ jobs:
256248 steps :
257249 - name : Checkout code
258250 uses : actions/checkout@v4
259- - name : Set up Python
260- uses : actions /setup-python@v5
251+ - name : Install uv
252+ uses : astral-sh /setup-uv@v6
261253 with :
254+ version : ${{ env.UV_VERSION }}
262255 python-version : ${{ matrix.python-version }}
263- - name : Install dependencies
264- run : |
265- pip install .
266- pip install integrations/dspy --group dev
267256 - name : Run tests
257+ working-directory : integrations/dspy
268258 run : |
269- pytest integrations/dspy/ tests/unit_tests
259+ uv run --exact --group integration pytest tests/unit_tests
0 commit comments