Skip to content

feat: auto-reindex with Merkle tree change detection #42

feat: auto-reindex with Merkle tree change detection

feat: auto-reindex with Merkle tree change detection #42

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install uv
uses: astral-sh/setup-uv@v4
- name: Set up Python
run: uv python install 3.12
- name: Install dependencies (with dev extras)
run: uv sync --extra dev
- name: Cache sentence-transformers model
uses: actions/cache@v4
with:
path: |
~/.cache/huggingface
~/.cache/torch
key: ${{ runner.os }}-st-model-all-MiniLM-L6-v2
- name: Check imports & server loads
run: |
uv run python -c "
from vecgrep.server import mcp
tools = [t.name for t in mcp._tool_manager.list_tools()]
assert 'index_codebase' in tools
assert 'search_code' in tools
assert 'get_index_status' in tools
assert 'stop_watching' in tools
print('All tools registered:', tools)
"
- name: Lint
run: uv run ruff check src/ tests/
- name: Run tests
run: uv run pytest tests/ -v --tb=short --cov=src/vecgrep --cov-report=xml
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: coverage.xml
fail_ci_if_error: false
- name: Type check (non-blocking)
run: uv run pyright src/ || true