Skip to content

fix(boot): defer llama.cpp startup after stdio transport (MCP handsha… #244

fix(boot): defer llama.cpp startup after stdio transport (MCP handsha…

fix(boot): defer llama.cpp startup after stdio transport (MCP handsha… #244

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
permissions:
contents: read
jobs:
test:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest]
# P2-16 audit: requires-python = ">=3.10" — 3.10 добавлен в matrix
# (в т.ч. для регрессий wrong-loop на 3.10, см. P3-12)
python-version: ["3.10", "3.11", "3.12"]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v5 # P2-16 audit: v4 использует Node 20 (deprecated)
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: pip
- name: Install system dependencies (Linux)
if: runner.os == 'Linux'
run: |
sudo apt-get update -qq
sudo apt-get install -y -qq libomp-dev # OpenMP для onnxruntime
- name: Install project
run: |
python -m pip install --upgrade pip
# Без openvino и lancedb GPU-зависимостей — только CPU
pip install -e ".[dev]"
- name: Lint (ruff)
run: ruff check src/ tests/
- name: Check version consistency
run: python scripts/bump_version.py --check
- name: Full test suite (no filters)
run: python -m pytest tests/ -q --tb=short -m 'not slow and not benchmark' --cov=src --cov-report=term-missing --cov-fail-under=38
timeout-minutes: 10
clean-state:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5 # P2-16 audit: v4 использует Node 20 (deprecated)
- uses: actions/setup-python@v5
with:
python-version: "3.12"
cache: pip
- name: Verify clean state (no self-clone)
run: bash scripts/verify_clean_state.sh --no-clone "${{ github.repository }}"
timeout-minutes: 15