Skip to content

build(deps): bump the ci-dependencies group across 1 directory with 4… #245

build(deps): bump the ci-dependencies group across 1 directory with 4…

build(deps): bump the ci-dependencies group across 1 directory with 4… #245

Workflow file for this run

name: Python CI
on:
push:
branches:
- main
pull_request:
jobs:
lint-test:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Setup Python
uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0
with:
python-version: 3.12
allow-prereleases: true
cache: pip
cache-dependency-path: uv.lock
- name: Set up uv
run: curl -LsSf https://astral.sh/uv/install.sh | sh
- name: Sync dependencies
run: uv sync --group dev --group tests
- name: Run pre-commit
run: uv run pre-commit run --all-files
- name: Check formatting
run: uv run ruff format --check .
- name: Run Ruff checks
run: uv run ruff check --output-format=github .
- name: Run mypy
run: uv run mypy --strict src/
- name: Run tests
run: uv run python -m coverage run -m pytest -v
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@18283e04ce6e62d37312384ff67231eb8fd56d24 # v5.4.3
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
docs:
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write
uses: darbiadev/.github/.github/workflows/github-pages-python-sphinx.yaml@91dda16028f109ac78016dd740206fd109740068 # v15.0.0