ci: add GitHub Actions workflow (ruff, mypy, pytest, evals, tsc) - #4
Merged
Conversation
Adds .github/workflows/ci.yml running on push to main and on PRs, so branch protection can require a status check. Two jobs mirror scripts/check.ps1: - sidecar (Python 3.11 + 3.12): uv sync, ruff check, ruff format --check, mypy strict, pytest, plus the evals suite via PYTHONPATH. - extension (Node 20): npm ci, tsc --noEmit. CI is hermetic and keyless: OpenAI/Qdrant are mocked in tests, so a placeholder OPENAI_API_KEY only satisfies the entrypoint's presence guard, and the live_subprocess tests (which reach for a real Qdrant) are deselected. Also fixes issues the strict CI surfaced that the local --fix pipeline had been masking: - test_ws_auth.py: combine nested with-statements (ruff SIM117) - __main__.py, agent.py: apply ruff formatter (format --check) - uv.lock: relock stale package version (1.0.0 -> 1.0.2) Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds .github/workflows/ci.yml running on push to main and on PRs, so branch protection can require a status check. Two jobs mirror scripts/check.ps1:
CI is hermetic and keyless: OpenAI/Qdrant are mocked in tests, so a placeholder OPENAI_API_KEY only satisfies the entrypoint's presence guard, and the live_subprocess tests (which reach for a real Qdrant) are deselected.
Also fixes issues the strict CI surfaced that the local --fix pipeline had been masking:
What & why
Checklist
./scripts/check.ps1passes (sidecar: ruff + mypy strict + pytest; extension: tsc),or the equivalent per-stack commands
.envstays localCHANGELOG.mdupdated (for user-visible changes)Notes