# Continuous Integration Workflow for MCP Skills
# Runs tests, linting, and type checking on multiple Python versions
name: CI
on:
push:
branches: [main, develop]
pull_request:
branches: [main, develop]
jobs:
test:
name: Test Python ${{ matrix.python-version }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.11", "3.12", "3.13"]
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: 'pip'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -e ".[dev]"
- name: Run linting
run: |
echo "Running code quality checks..."
ruff check src/mcp_skills tests
black --check src/mcp_skills tests
- name: Run type checking
if: matrix.python-version == '3.11'
run: |
echo "Running type checks..."
mypy src/mcp_skills
- name: Run tests with coverage
run: |
echo "Running test suite..."
pytest tests --cov=src/mcp_skills --cov-report=xml --cov-report=term-missing
- name: Upload coverage to Codecov
if: matrix.python-version == '3.11'
uses: codecov/codecov-action@v4
with:
file: ./coverage.xml
fail_ci_if_error: false
verbose: true