45 lines
1.2 KiB
YAML
45 lines
1.2 KiB
YAML
name: ci
|
|
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
pull_request:
|
|
|
|
jobs:
|
|
test:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: Install uv
|
|
uses: astral-sh/setup-uv@v5
|
|
with:
|
|
enable-cache: true
|
|
|
|
# Resolves cluster-mcp from the tag pinned in the root pyproject.
|
|
# If this step starts failing without a pin change, upstream published
|
|
# a moved tag: re-pin per docs/upstream-policy.md.
|
|
- name: Sync environment
|
|
run: uv sync --all-packages --dev
|
|
|
|
- name: Lint
|
|
run: uv run ruff check .
|
|
|
|
- name: Format
|
|
run: uv run ruff format --check .
|
|
|
|
# Advisory: upstream ships no stubs; do not gate on it yet.
|
|
- name: Types
|
|
run: uv run mypy packages
|
|
continue-on-error: true
|
|
|
|
- name: Tests
|
|
run: uv run --all-packages pytest
|
|
|
|
- name: Entrypoint smoke test
|
|
run: |
|
|
# Test that the entrypoint can start and display help
|
|
uv run merlin-hpc-mcp --help > /dev/null 2>&1
|
|
# Test that local mode can be invoked (will timeout but should not crash immediately)
|
|
timeout 2 uv run merlin-hpc-mcp --mode local --transport stdio 2>&1 || true
|