Skip to content

Commit 3b39d48

Browse files
committed
tests: add uv to tests
Signed-off-by: Henry Schreiner <[email protected]>
1 parent f7b7641 commit 3b39d48

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

test/conftest.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -151,11 +151,13 @@ def docker_warmup_fixture(
151151
return None
152152

153153

154-
@pytest.fixture(params=["pip", "build"])
154+
@pytest.fixture(params=["pip", "build", "uv"])
155155
def build_frontend_env_nouv(request: pytest.FixtureRequest) -> dict[str, str]:
156156
frontend = request.param
157-
if get_platform() == "pyodide" and frontend == "pip":
158-
pytest.skip("Can't use pip as build frontend for pyodide platform")
157+
if get_platform() == "pyodide" and frontend in {"pip", "uv"}:
158+
pytest.skip("Can't use pip or uv as build frontend for pyodide platform")
159+
if frontend == "uv" and find_uv() is None:
160+
pytest.skip("Can't find uv")
159161

160162
return {"CIBW_BUILD_FRONTEND": frontend}
161163

0 commit comments

Comments
 (0)