Skip to content

CI

CI #121

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
workflow_dispatch:
inputs:
ref:
description: "Branch or SHA to run CI on"
required: false
default: ""
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
python-version: ["3.11", "3.12", "3.13"]
os: [ubuntu-latest, windows-latest]
steps:
- uses: actions/checkout@v6
- uses: actions/setup-python@v6
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: python -m pip install --upgrade pip setuptools && pip install -e ".[dev]"
- name: Security scan
run: pip install bandit pip-audit && bandit -r src/ -c pyproject.toml && pip-audit
- name: Lint
run: ruff check src/ tests/
- name: Type check
run: mypy src/cmcp_gateway/
- name: Test
run: pytest tests/unit/ -v --tb=short --cov=src --cov-report=xml
- name: Upload coverage report
uses: codecov/codecov-action@v6
with:
fail_ci_if_error: false