Skip to content

ci(claude-code): run the plugin test suite in CI#42

Merged
imran-siddique merged 1 commit into
mainfrom
ci/claude-code-tests
Jul 16, 2026
Merged

ci(claude-code): run the plugin test suite in CI#42
imran-siddique merged 1 commit into
mainfrom
ci/claude-code-tests

Conversation

@imran-siddique

Copy link
Copy Markdown
Contributor

Follow-up to #41. The plugin's pytest suite was never run by CI — validate.yml only validates integration.yaml schemas under integrations/ and doesn't touch claude-code/. So all the regression tests we've added (verify fix, hook hardening, signing/verification) only ran locally.

Adds .github/workflows/claude-code-tests.yml, triggered on claude-code/** changes, with two jobs:

  • stdlib — runs pytest with no crypto packages installed, asserting the SessionStart hook and drift check work on the standard library alone. The signing tests skip via importorskip; an accidental hard dependency on crypto would fail this job.
  • signingpip install -r requirements.txt then the full suite across Python 3.11 / 3.12 / 3.13, exercising the sign → publish → verify path.

Verified locally: stdlib env → 13 passed, 2 skipped; crypto env → 15 passed.

🤖 Generated with Claude Code

The plugin's pytest suite was never executed by CI: validate.yml only checks
integration.yaml schemas under integrations/ and does not touch claude-code/,
so every regression test added only ran when someone ran it by hand.

Adds a workflow (triggered on claude-code/** changes) with two jobs:
- stdlib: pytest with NO crypto packages, asserting the SessionStart hook and
  drift check work on the standard library alone (signing tests skip via
  importorskip; an accidental dependency on them fails the build).
- signing: pip install -r requirements.txt then the full suite across
  Python 3.11 / 3.12 / 3.13, exercising the sign / publish / verify path.

Verified locally: stdlib env -> 13 passed, 2 skipped; crypto env -> 15 passed.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@imran-siddique
imran-siddique merged commit 18f81bb into main Jul 16, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant