Skip to content

Use Claude Code, Codex, VSCode, Pi, and OpenCode (and 6 other harnesses) for free (1.3B+ free tokens) from your terminal, app, IDE, or phone, and now from the browser with native browser sessions (multi-harness + multi-model) like OpenClaw (voice supported + ToS friendly)

Python

Make ci parallel

Alishahryar164e9887dcf78
diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml
index b9eccc7c..2eb906e6 100644
--- a/.github/workflows/tests.yml
+++ b/.github/workflows/tests.yml
@@ -1,3 +1,6 @@
+# Branch protection: require the status check named "ci" (this workflow's gate job).
+# That single job reflects success or failure of all parallel lanes below.
+
name: CI
on:
@@ -11,7 +14,8 @@ concurrency:
cancel-in-progress: true
jobs:
- checks:
+ no-type-ignore-suppressions:
+ name: Ban type ignore suppressions
runs-on: ubuntu-latest
timeout-minutes: 15
permissions:
@@ -31,6 +35,31 @@ jobs:
fi
exit 0
+ quality:
+ name: ${{ matrix.id }}
+ runs-on: ubuntu-latest
+ timeout-minutes: 15
+ permissions:
+ contents: read
+ strategy:
+ fail-fast: false
+ matrix:
+ include:
+ - id: ruff-format
+ run: uv run ruff format --check
+ - id: ruff-check
+ run: uv run ruff check
+ - id: ty
+ run: uv run ty check
+ - id: pytest
+ run: uv run pytest -v --tb=short
+ steps:
+ - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd
+ with:
+ ref: ${{ github.event.pull_request.head.sha || github.ref }}
+ repository: ${{ github.event.pull_request.head.repo.full_name || github.repository }}
+ fetch-depth: 1
+
- name: Install uv
uses: astral-sh/setup-uv@08807647e7069bb48b6ef5acd8ec9567f424441b
with:
@@ -38,14 +67,24 @@ jobs:
enable-cache: true
cache-python: true
- - name: Format check
- run: uv run ruff format --check
-
- - name: Style check
- run: uv run ruff check
-
- - name: Type check
- run: uv run ty check
+ - name: Run
+ run: ${{ matrix.run }}
- - name: Run tests
- run: uv run pytest -v --tb=short
+ ci:
+ name: ci
+ runs-on: ubuntu-latest
+ timeout-minutes: 5
+ needs: [no-type-ignore-suppressions, quality]
+ if: always()
+ permissions:
+ contents: read
+ steps:
+ - name: All checks passed
+ run: |
+ sup="${{ needs.no-type-ignore-suppressions.result }}"
+ qual="${{ needs.quality.result }}"
+ if [[ "$sup" != "success" || "$qual" != "success" ]]; then
+ echo "::error::Required check failed (suppressions: $sup, quality matrix: $qual)."
+ exit 1
+ fi
+ echo "All checks passed."
diff --git a/AGENTS.md b/AGENTS.md
index 4b375436..0a1bd2f8 100644
--- a/AGENTS.md
+++ b/AGENTS.md
@@ -13,7 +13,8 @@
- Add tests for new changes (including edge cases), then run `uv run pytest`.
- Run checks in this order: `uv run ruff format`, `uv run ruff check`, `uv run ty check`, `uv run pytest`.
- Do not add `# type: ignore` or `# ty: ignore`; fix the underlying type issue.
-- All 5 checks are enforced in `tests.yml` on push/merge.
+- All 5 checks are enforced in `tests.yml` on push/merge (parallel jobs; a single **ci** gate job aggregates results).
+- Branch protection: set **required status checks** to **ci** (the gate job name in Actions). If you still require the old single job name, add **ci** and remove obsolete entries after merging this workflow.
## IDENTITY & CONTEXT