Skip to content

[6/6] Silence unused variables warnings #274

[6/6] Silence unused variables warnings

[6/6] Silence unused variables warnings #274

Workflow file for this run

name: CI
on:
pull_request:
push:
branches: [ main ]
jobs:
lint-test-docs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
python-version: ['3.9', '3.13', '3.14']
os: [ubuntu-latest, macos-latest, windows-latest]
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install uv
uses: astral-sh/setup-uv@v6
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
uv sync
- name: Lint and type check
run: uv run poe lint
- name: Run tests
run: |
uv run pytest --cov=src --cov-report=html:coverage_html_report
- name: Upload coverage report
uses: actions/upload-artifact@v4
with:
name: coverage-html-report-${{ matrix.os }}-${{ matrix.python-version }}
path: coverage_html_report/
deploy-docs:
runs-on: ubuntu-latest
needs: lint-test-docs
# TODO(preview): deploy on releases only
permissions:
contents: read
pages: write
id-token: write
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install uv
uses: astral-sh/setup-uv@v6
with:
python-version: '3.9'
- name: Install dependencies
run: uv sync
- name: Build API docs
run: uv run poe docs
- name: Upload docs to GitHub Pages
uses: actions/upload-pages-artifact@v3
with:
path: apidocs
- name: Deploy to GitHub Pages
uses: actions/deploy-pages@v4