Skip to content

Add comprehensive tests for mcp_oauth_lib modules #8

Add comprehensive tests for mcp_oauth_lib modules

Add comprehensive tests for mcp_oauth_lib modules #8

Workflow file for this run

name: CI
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.11", "3.12"]
steps:
- uses: actions/checkout@v4
- name: Install uv
uses: astral-sh/setup-uv@v3
with:
version: "latest"
- name: Set up Python ${{ matrix.python-version }}
run: uv python install ${{ matrix.python-version }}
- name: Install dependencies
run: |
uv sync --dev
- name: Run pre-commit hooks
run: |
uv run pre-commit run --all-files
- name: Run tests
run: |
uv run pytest tests/ -v
- name: Generate coverage report
run: |
uv run pytest --cov=src --cov-report=xml --cov-report=term-missing tests/
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v4
with:
file: ./coverage.xml
flags: unittests
name: codecov-umbrella
fail_ci_if_error: false