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.
Python agentaichatgptdeepseekfine-tuninggemmaimage-generationllamallmllmsopenaipythonqwenreinforcement-learningself-hostedstable-diffusiontext-to-speechttsuiunsloth
CI: run the Pester guard on Windows without the smoke suite (#7753)
Daniel Han8b8eba615603
diff --git a/.github/workflows/pester-guard-ci.yml b/.github/workflows/pester-guard-ci.ymlnew file mode 100644index 00000000000..97a8d1c71a9--- /dev/null+++ b/.github/workflows/pester-guard-ci.yml@@ -0,0 +1,47 @@+# SPDX-License-Identifier: AGPL-3.0-only+# Copyright 2026-present the Unsloth AI Inc. team. All rights reserved.++# The Pester bootstrap guard runs on windows-latest inside the `pester` job of+# studio-windows-inference-smoke.yml, which covers edits to that workflow.+# It does not cover edits to the guard itself: that workflow has no job-level+# path gating, so listing a .py file there would launch all eight Windows smoke+# jobs, four of which download GGUF models and run for 30+ minutes.+#+# This runs the same guard on the same OS in about a minute, so a Windows-only+# break in the guard is caught by the PR that introduces it.++name: Pester guard++on:+ pull_request:+ paths:+ - 'tests/studio/test_pester_bootstrap_hardening.py'+ - '.github/workflows/pester-guard-ci.yml'+ workflow_dispatch:++concurrency:+ group: ${{ github.workflow }}-${{ github.ref }}+ cancel-in-progress: true++permissions:+ contents: read++jobs:+ guard:+ name: Pester bootstrap guard+ runs-on: windows-latest+ timeout-minutes: 10+ steps:+ - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2+ with:+ persist-credentials: false++ - uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0+ with:+ python-version: '3.12'++ - name: Guard the Pester bootstrap+ shell: bash+ run: |+ python -m pip install --quiet pyyaml pytest+ python -m pytest tests/studio/test_pester_bootstrap_hardening.py -qdiff --git a/tests/studio/test_pester_bootstrap_hardening.py b/tests/studio/test_pester_bootstrap_hardening.pyindex 4ead301b408..e4036eb916c 100644--- a/tests/studio/test_pester_bootstrap_hardening.py+++ b/tests/studio/test_pester_bootstrap_hardening.py@@ -29,6 +29,7 @@ import yamlREPO_ROOT = Path(__file__).resolve().parents[2]_WORKFLOW = REPO_ROOT / ".github" / "workflows" / "studio-windows-inference-smoke.yml"+_GUARD_WORKFLOW = REPO_ROOT / ".github" / "workflows" / "pester-guard-ci.yml"def _bootstrap_step() -> dict:@@ -119,6 +120,17 @@ def test_the_guard_runs_from_the_workflow_it_guards():), "the pester job must run this guard, or a workflow-only edit skips it entirely"+def test_editing_the_guard_runs_it_on_windows():+ """The heavy workflow has no job-level gating, so the guard gets its own cheap one."""+ workflow = yaml.safe_load(_GUARD_WORKFLOW.read_text(encoding = "utf-8"))+ on = workflow.get("on") or workflow.get(True)+ assert Path(__file__).resolve().relative_to(REPO_ROOT).as_posix() in on["pull_request"]["paths"]+ jobs = list(workflow["jobs"].values())+ assert len(jobs) == 1, "keep this workflow to one job, it exists to be cheap"+ assert jobs[0]["runs-on"] == "windows-latest", "the bug this catches is Windows-only"+ assert any(Path(__file__).name in (s.get("run") or "") for s in jobs[0]["steps"])++def test_network_is_skipped_when_the_image_already_satisfies_the_minimum():"""The runner ships Pester 5.x; the common path should not touch PSGallery."""run = _bootstrap_step()["run"]