From 5b253c2437079ae4a55a517faf08c15cf2cea51b Mon Sep 17 00:00:00 2001 From: Jaideep <67646710+jdchawla29@users.noreply.github.com> Date: Sun, 26 Jul 2026 17:47:41 -0700 Subject: [PATCH] CI: run vendored template suites against the SDK checkout Each environments/ template installs its pinned deps, overrides hud with the checkout via an editable install, then runs its own ruff and pytest. Catches SDK changes that break the canonical templates at the PR boundary. --- .github/workflows/ci.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e6dfb03e4..3fe55e8db 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -26,6 +26,33 @@ jobs: - name: Run tests run: uv run --python ${{ matrix.python-version }} --with=".[dev]" pytest --cov --cov-report='' + templates: + runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + template: [coding, cua] + + steps: + - name: Check out code + uses: actions/checkout@v4 + + - name: Install uv + uses: astral-sh/setup-uv@v5 + + - name: Install template with the SDK from this checkout + working-directory: environments/${{ matrix.template }} + run: | + uv sync --all-extras + uv pip install -e ../.. + + - name: Run template checks + working-directory: environments/${{ matrix.template }} + run: | + uv run --no-sync ruff format . --check + uv run --no-sync ruff check . + uv run --no-sync pytest -q + lint-ruff: runs-on: ubuntu-latest steps: