Skip to content

Fix CI: resolve mypy type errors and ruff import sorting #12

Fix CI: resolve mypy type errors and ruff import sorting

Fix CI: resolve mypy type errors and ruff import sorting #12

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.12"
- run: pip install ruff
- run: ruff check src/ tests/
typecheck:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.12"
- run: pip install -e ".[all]" mypy
- run: mypy src/mcp_pcb_emcopilot/ --ignore-missing-imports
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.10", "3.11", "3.12"]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- run: pip install -e ".[all,dev]"
- run: pytest tests/ -v --tb=short
- run: pytest tests/ --cov=mcp_pcb_emcopilot --cov-report=term-missing --cov-fail-under=50