Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 10 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ on:
branches: [main]
pull_request:

concurrency:
group: ci-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

jobs:
lint:
name: Lint
Expand All @@ -14,7 +18,8 @@ jobs:
- uses: actions/setup-python@v5
with:
python-version: "3.13"
- run: pip install ruff
- run: pip install -r requirements-dev.txt
- run: pip check
- run: ruff check .

typecheck:
Expand All @@ -25,7 +30,8 @@ jobs:
- uses: actions/setup-python@v5
with:
python-version: "3.13"
- run: pip install pyright pyyaml anthropic mcp pytest
- run: pip install -r requirements-dev.txt
- run: pip check
- run: pyright

test:
Expand All @@ -36,5 +42,6 @@ jobs:
- uses: actions/setup-python@v5
with:
python-version: "3.13"
- run: pip install pytest pyyaml anthropic
- run: pip install -r requirements-dev.txt
- run: pip check
- run: pytest plugins/
30 changes: 30 additions & 0 deletions requirements-dev.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# Pinned dev/CI dependencies for claude-plugins.
#
# Installed in every CI job via `pip install -r requirements-dev.txt`, then
# validated with `pip check` to guard against broken dependency graphs.
#
# Bumped manually. To regenerate:
#
# python3.13 -m venv /tmp/claude-plugins-lockfile
# /tmp/claude-plugins-lockfile/bin/pip install --upgrade pip
# /tmp/claude-plugins-lockfile/bin/pip install ruff pyright pytest pyyaml anthropic mcp
# /tmp/claude-plugins-lockfile/bin/pip freeze
#
# Then update the pinned direct dependencies below. Transitive dependencies
# are resolved by pip at install time; `pip check` verifies the resolved graph
# is internally consistent.
#
# Direct dependencies used by CI jobs:
# - ruff: linting (lint job)
# - pyright: type checking (typecheck job)
# - pytest: test runner (test / contract-tests / quarantine jobs)
# - pyyaml: YAML parsing in plugin tools + tests
# - anthropic: Anthropic SDK (imported by plugin code under test)
# - mcp: MCP SDK (imported by plugin code under test)

anthropic==0.92.0
mcp==1.27.0
pyright==1.1.408
pytest==9.0.3
PyYAML==6.0.3
ruff==0.15.9
Loading