Skip to content

Update MkDocs theme colors for cohesive palette (#210) #569

Update MkDocs theme colors for cohesive palette (#210)

Update MkDocs theme colors for cohesive palette (#210) #569

Workflow file for this run

name: CI
on:
push:
branches: [ main, develop ]
pull_request:
branches: [ main, develop ]
workflow_dispatch:
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: Install uv
uses: astral-sh/setup-uv@v7
- name: Set up Python
run: uv python install 3.13
- name: Install dependencies
run: uv sync
- name: Check code formatting with ruff
run: uv run ruff format --check optopsy/ tests/
- name: Lint with ruff
run: uv run ruff check optopsy/ tests/
- name: Type check with ty
run: uv run ty check optopsy/
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.12", "3.13"]
extras: ["", "ui"]
steps:
- uses: actions/checkout@v6
- name: Install uv
uses: astral-sh/setup-uv@v7
- name: Set up Python ${{ matrix.python-version }}
run: uv python install ${{ matrix.python-version }}
- name: Install dependencies
run: |
if [ -n "${{ matrix.extras }}" ]; then
uv sync --extra ${{ matrix.extras }}
else
uv sync
fi
- name: Run tests with pytest
run: uv run pytest tests/ -v --cov=optopsy --cov-report=term-missing --cov-report=xml
- name: Upload coverage to Codecov
if: always() && matrix.python-version == '3.13'
uses: codecov/codecov-action@v5
with:
files: coverage.xml
flags: py${{ matrix.python-version }}${{ matrix.extras && '-' }}${{ matrix.extras }}
token: ${{ secrets.CODECOV_TOKEN }}