Skip to content

Local UI to run and train LLMs and diffusion models. Supports GGUF, MLX, Qwen3.8, DeepSeek-V4.1, MiniMax-H3, Gemma 4, FLUX and more.

Compare the workflow path as posix so the guard passes on Windows (#7750)

Daniel Hanf45a38ca14bf
diff --git a/tests/studio/test_pester_bootstrap_hardening.py b/tests/studio/test_pester_bootstrap_hardening.py
index 74e258c2c4c..4ead301b408 100644
--- a/tests/studio/test_pester_bootstrap_hardening.py
+++ b/tests/studio/test_pester_bootstrap_hardening.py
@@ -110,7 +110,9 @@ def test_the_guard_runs_from_the_workflow_it_guards():
"""No pytest workflow filters on this file, so the job must run the guard itself."""
workflow = yaml.safe_load(_WORKFLOW.read_text(encoding = "utf-8"))
on = workflow.get("on") or workflow.get(True)
- assert str(_WORKFLOW.relative_to(REPO_ROOT)) in on["pull_request"]["paths"]
+ # as_posix(), not str(): this runs on windows-latest, where str() would give
+ # backslashes and never match the forward-slash paths in the YAML.
+ assert _WORKFLOW.relative_to(REPO_ROOT).as_posix() in on["pull_request"]["paths"]
steps = workflow["jobs"]["pester"]["steps"]
assert any(
Path(__file__).name in (s.get("run") or "") for s in steps