Skip to content

build(deps): bump actions/checkout from 6 to 7 in the actions group #93

build(deps): bump actions/checkout from 6 to 7 in the actions group

build(deps): bump actions/checkout from 6 to 7 in the actions group #93

Workflow file for this run

name: CI
on:
push:
branches: ["main"]
pull_request:
types: [opened, synchronize, reopened, ready_for_review]
branches: ["main"]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
python-version: ["3.11", "3.12", "3.13"]
steps:
- uses: actions/checkout@v7
- name: Install uv
uses: astral-sh/setup-uv@v7
with:
version: "latest"
python-version: ${{ matrix.python-version }}
- name: Set up Python ${{ matrix.python-version }}
run: uv python install ${{ matrix.python-version }}
- name: Install dependencies
run: uv sync --group test
- name: Run ruff check
run: uv run ruff check --output-format=github
- name: Run ruff format check
run: uv run ruff format --check
- name: Run type checking with pyright
run: uv run pyright
- name: Run tests with coverage
run: uv run pytest
build-docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- name: Install uv
uses: astral-sh/setup-uv@v7
with:
version: "latest"
- name: Set up Python
run: uv python install 3.11
- name: Install dependencies
run: uv sync --group docs
- name: Build documentation
run: uv run mkdocs build --strict
- name: Upload artifact
uses: actions/upload-pages-artifact@v5
with:
path: ./site
deploy-docs:
needs: build-docs
if: github.ref == 'refs/heads/main'
runs-on: ubuntu-latest
permissions:
contents: read
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v5