Enhance testing and validation for Agent Plugins

- Added `jsonschema` as a development dependency to validate `plugin.json` against the official schema.
- Updated `tests/_meta` to include checks for package-path containment and version synchronization.
- Revised `skill-tests.yml` to trigger tests on changes to `plugin.json` and ensure CI runs the new validation checks.
- Improved unit tests to ensure plugin manifests conform to the schema and maintain proper structure within the plugin root.
This commit is contained in:
Timothy Kassis committed 2026-09-29 15:31:00 -07:00
1 parent d0c48af8c7
commit f362b20e90
7 files changed
+315 -29

No files matched your search

+7
View File
@@ -5,6 +5,7 @@ on:
paths:
- "skills/**"
- "tests/**"
- "plugin.json"
- "pyproject.toml"
- "uv.lock"
- ".github/workflows/skill-tests.yml"
@@ -14,6 +15,10 @@ on:
paths:
- "skills/**"
- "tests/**"
- "plugin.json"
- "pyproject.toml"
- "uv.lock"
- ".github/workflows/skill-tests.yml"
workflow_dispatch:
permissions:
@@ -49,6 +54,8 @@ jobs:
# a skill shipping scripts/ has a suite under tests/ and an entry in
# tests/skill-requirements.toml. It imports no skill code and needs no
# scientific packages, so it runs in seconds on every pull request.
# It also validates plugin.json against the bundled Agent Plugins schema,
# checks package-path containment, and keeps the collection version in sync.
- name: Structural contract and coverage
run: uv run --python 3.13 python -m pytest tests/_meta -q