chore: prepare MCPAudit 2.6.0 release candidate (#192) #839
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: CI | |
| on: | |
| push: | |
| branches: [main, "feat/**", "fix/**", "docs/**", "chore/**", "codex/**"] | |
| pull_request: | |
| branches: [main] | |
| permissions: | |
| contents: read | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| python-version: ["3.11", "3.12", "3.13"] | |
| steps: | |
| - uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0 | |
| - uses: astral-sh/setup-uv@11f9893b081a58869d3b5fccaea48c9e9e46f990 # v8.3.2 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Install dependencies | |
| run: uv sync --dev --locked | |
| - name: Lint (ruff check) | |
| run: uv run ruff check src/ tests/ | |
| - name: Format check (ruff format) | |
| run: uv run ruff format --check src/ tests/ | |
| - name: Type check (mypy) | |
| run: uv run mypy . | |
| - name: Prepare local observer image | |
| run: docker pull node:24-slim | |
| - name: Unit tests | |
| run: uv run pytest tests/ -v --ignore=tests/test_connector.py --cov=mcp_audit | |
| - name: Integration tests (connector) | |
| run: uv run pytest tests/test_connector.py -v --cov=mcp_audit --cov-append | |
| - name: Coverage gate | |
| run: uv run coverage report --fail-under=85 |