name: Run Tests
on:
push:
branches:
- '**'
pull_request:
branches:
- '**'
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.10", "3.11", "3.12", "3.13"]
steps:
- uses: actions/checkout@v3
- name: Install uv
uses: astral-sh/setup-uv@v3
- name: Set up Python ${{ matrix.python-version }}
run: uv python install ${{ matrix.python-version }}
- name: Install dependencies
run: uv sync --python ${{ matrix.python-version }} --extra dev
- name: Run Ruff linter and formatter
run: |
uv run ruff check .
uv run ruff format --check .
- name: Run unit tests with coverage
run: |
uv run pytest tests -v --cov=src/RTFD --cov-report=term-missing -m "not integration"
- name: Run integration tests with cassettes
run: |
uv run pytest tests/test_integration -v --record-mode=none -m "integration"