Skip to content

Multimodal HTML Viewer #250

Multimodal HTML Viewer

Multimodal HTML Viewer #250

Workflow file for this run

name: pre-commit checks
on:
pull_request:
branches:
- main
push:
branches:
- main
jobs:
pre-commit:
name: pre-commit on ${{ matrix.python-version }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.10", "3.11", "3.12", "3.13", "3.14"]
steps:
- uses: actions/checkout@v5
- name: Set up Python
uses: actions/setup-python@v6
with:
python-version: ${{ matrix.python-version }}
- name: Install uv
uses: astral-sh/setup-uv@v7
with:
version: "0.9.5"
enable-cache: true
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: "20"
- name: Install pnpm
uses: pnpm/action-setup@v4
with:
version: 9
- name: Install the project
run: uv sync --locked --all-extras --dev
- name: Cache pre-commit hooks
uses: actions/cache@v4
with:
path: ~/.cache/pre-commit
key: pre-commit-${{ runner.os }}-${{ hashFiles('.pre-commit-config.yaml', 'uv.lock') }}
restore-keys: |
pre-commit-${{ runner.os }}-
- name: Run pre-commit
run: uv run pre-commit run --all-files --show-diff-on-failure