2525 uses : astral-sh/setup-uv@v6
2626 with :
2727 enable-cache : " true"
28- cache-suffix : ${{ matrix.python-version }}
28+ cache-suffix : altair- ${{ matrix.python-version }}
2929 cache-dependency-glob : " pyproject.toml"
3030 - name : clone-altair
3131 run : |
7272 uses : astral-sh/setup-uv@v6
7373 with :
7474 enable-cache : " true"
75- cache-suffix : ${{ matrix.python-version }}
75+ cache-suffix : marimo- ${{ matrix.python-version }}
7676 cache-dependency-glob : " pyproject.toml"
7777 - name : clone-marimo
7878 run : |
8686 run : |
8787 cd marimo
8888 . .venv/bin/activate
89- # temporary to get CI green
90- uv pip install "panel<1.6.1"
9189 uv pip install -e ".[dev]"
9290 which python
9391 - name : install-narwhals-dev
@@ -135,7 +133,7 @@ jobs:
135133 uses : astral-sh/setup-uv@v6
136134 with :
137135 enable-cache : " true"
138- cache-suffix : ${{ matrix.python-version }}
136+ cache-suffix : sklego- ${{ matrix.python-version }}
139137 cache-dependency-glob : " pyproject.toml"
140138 - name : clone-scikit-lego
141139 run : git clone https://github.com/koaning/scikit-lego.git --depth 1
@@ -172,30 +170,41 @@ jobs:
172170 uses : astral-sh/setup-uv@v6
173171 with :
174172 enable-cache : " true"
175- cache-suffix : ${{ matrix.python-version }}
173+ cache-suffix : shiny- ${{ matrix.python-version }}
176174 cache-dependency-glob : " pyproject.toml"
177175 - name : clone-shiny
178176 run : |
179177 git clone https://github.com/posit-dev/py-shiny.git
180178 cd py-shiny
179+ uv venv -p ${{ matrix.python-version }}
181180 git log
182181 - name : install-basics
183- run : uv pip install --upgrade tox virtualenv setuptools --system
182+ run : |
183+ cd py-shiny
184+ . .venv/bin/activate
185+ uv pip install --upgrade tox virtualenv setuptools
184186 - name : install-shiny-dev
185- env :
186- UV_SYSTEM_PYTHON : 1
187187 run : |
188188 cd py-shiny
189+ . .venv/bin/activate
190+ # temporary to get CI green
191+ uv pip install "chatlas<0.9.0"
189192 make narwhals-install-shiny
190193 - name : install-narwhals-dev
191194 run : |
192- uv pip uninstall narwhals --system
193- uv pip install -e . --system
195+ cd py-shiny
196+ . .venv/bin/activate
197+ uv pip uninstall narwhals
198+ uv pip install -e ./..
194199 - name : show-deps
195- run : uv pip freeze
200+ run : |
201+ cd py-shiny
202+ . .venv/bin/activate
203+ uv pip freeze
196204 - name : Run `make narwhals-test-integration`
197205 run : |
198206 cd py-shiny
207+ . .venv/bin/activate
199208 # Isort seems to behave slightly differently in CI
200209 # so we ignore its output
201210 make format -s
@@ -221,7 +230,7 @@ jobs:
221230 uses : astral-sh/setup-uv@v6
222231 with :
223232 enable-cache : true
224- cache-suffix : ${{ matrix.python-version }}
233+ cache-suffix : tea-tasting- ${{ matrix.python-version }}
225234 cache-dependency-glob : " pyproject.toml"
226235 python-version : ${{ matrix.python-version }}
227236 - name : install-tea-tasting-test
@@ -260,7 +269,7 @@ jobs:
260269 uses : astral-sh/setup-uv@v6
261270 with :
262271 enable-cache : " true"
263- cache-suffix : ${{ matrix.python-version }}
272+ cache-suffix : tubular- ${{ matrix.python-version }}
264273 cache-dependency-glob : " pyproject.toml"
265274 - name : clone-tubular
266275 run : |
@@ -302,7 +311,7 @@ jobs:
302311 uses : astral-sh/setup-uv@v6
303312 with :
304313 enable-cache : " true"
305- cache-suffix : ${{ matrix.python-version }}
314+ cache-suffix : plotly- ${{ matrix.python-version }}
306315 cache-dependency-glob : " pyproject.toml"
307316 - name : clone-plotly
308317 run : |
@@ -347,7 +356,7 @@ jobs:
347356 uses : astral-sh/setup-uv@v6
348357 with :
349358 enable-cache : " true"
350- cache-suffix : ${{ matrix.python-version }}
359+ cache-suffix : hierarchicalforecast- ${{ matrix.python-version }}
351360 cache-dependency-glob : " pyproject.toml"
352361 - name : clone-hierarchicalforecast
353362 run : |
@@ -389,7 +398,7 @@ jobs:
389398 uses : astral-sh/setup-uv@v6
390399 with :
391400 enable-cache : " true"
392- cache-suffix : ${{ matrix.python-version }}
401+ cache-suffix : formulaic- ${{ matrix.python-version }}
393402 cache-dependency-glob : " pyproject.toml"
394403 - name : clone-formulaic
395404 run : |
@@ -433,7 +442,7 @@ jobs:
433442 uses : astral-sh/setup-uv@v6
434443 with :
435444 enable-cache : " true"
436- cache-suffix : ${{ matrix.python-version }}
445+ cache-suffix : pointblank- ${{ matrix.python-version }}
437446 cache-dependency-glob : " pyproject.toml"
438447 - name : clone-pointblank
439448 run : |
@@ -445,17 +454,28 @@ jobs:
445454 - name : install-deps
446455 run : |
447456 cd pointblank
448- uv pip install . --group dev --system
449- uv pip install pytest pytest-cov pytest-snapshot pandas polars "ibis-framework[duckdb,mysql,postgres,sqlite]>=9.5.0" chatlas shiny --system
457+ uv venv -p ${{ matrix.python-version }}
458+ . .venv/bin/activate
459+ uv pip install . --group dev
460+ uv pip install pytest pytest-cov pytest-snapshot pandas polars "ibis-framework[duckdb,mysql,postgres,sqlite]>=9.5.0" chatlas shiny
450461 - name : install-narwhals-dev
451462 run : |
452- uv pip uninstall narwhals --system
453- uv pip install -e . --system
463+ cd pointblank
464+ . .venv/bin/activate
465+ uv pip uninstall narwhals
466+ uv pip install -e .
454467 - name : show-deps
455- run : uv pip freeze
468+ run : |
469+ cd pointblank
470+ . .venv/bin/activate
471+ uv pip freeze
456472 - name : Run tests
457473 run : |
458474 cd pointblank
475+ . .venv/bin/activate
476+ # make sure that we use the .venv when running tests, so that
477+ # the local narwhals install is picked up
478+ sed -i 's/uv run pytest/uv run --no-sync pytest/g' Makefile
459479 make test
460480
461481 validoopsie :
@@ -473,7 +493,7 @@ jobs:
473493 uses : astral-sh/setup-uv@v6
474494 with :
475495 enable-cache : " true"
476- cache-suffix : ${{ matrix.python-version }}
496+ cache-suffix : validoopsie- ${{ matrix.python-version }}
477497 cache-dependency-glob : " pyproject.toml"
478498 - name : clone-validoopsie
479499 run : |
@@ -520,7 +540,7 @@ jobs:
520540 uses : astral-sh/setup-uv@v6
521541 with :
522542 enable-cache : " true"
523- cache-suffix : ${{ matrix.python-version }}
543+ cache-suffix : darts- ${{ matrix.python-version }}
524544 cache-dependency-glob : " pyproject.toml"
525545 - name : clone-darts
526546 run : |
0 commit comments