Skip to content

Fix Sphinx documentation build warnings #22

Fix Sphinx documentation build warnings

Fix Sphinx documentation build warnings #22

Workflow file for this run

name: CI
on:
push:
branches: [main, develop]
pull_request:
branches: [main, develop]
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python-version: ["3.11", "3.12", "3.13"]
exclude:
# Test all versions on Linux, only 3.11 on macOS/Windows
- os: macos-latest
python-version: "3.12"
- os: macos-latest
python-version: "3.13"
- os: windows-latest
python-version: "3.12"
- os: windows-latest
python-version: "3.13"
steps:
- 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: Lint with ruff
run: |
ruff check src/ tests/
- name: Check formatting with black
run: |
black --check src/ tests/
- name: Type check with mypy
run: |
mypy src/tabula_rasa
continue-on-error: true
- name: Run tests
run: |
pytest tests/ -v --cov=tabula_rasa --cov-report=xml --cov-report=term
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
if: matrix.os == 'ubuntu-latest' && matrix.python-version == '3.11'
with:
file: ./coverage.xml
fail_ci_if_error: false
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.11"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install ruff black isort
- name: Lint with ruff
run: ruff check src/ tests/
- name: Check formatting
run: |
black --check src/ tests/
isort --check-only src/ tests/