Skip to content

feat: use shared pre-commit-hooks from kellerlabs/pre-commit-hooks #729

feat: use shared pre-commit-hooks from kellerlabs/pre-commit-hooks

feat: use shared pre-commit-hooks from kellerlabs/pre-commit-hooks #729

Workflow file for this run

---
name: Pre-commit
on:
pull_request:
push:
branches: [main]
jobs:
pre-commit:
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- name: Checkout repository
uses: actions/checkout@v6
- name: Setup OpenSCAD
uses: ./.github/actions/setup-openscad
with:
scadm-source: cmd/scadm
- name: Cache flatten checksums
uses: actions/cache@v5
with:
path: models/.flatten-checksums
key: flatten-checksums-${{ github.head_ref || github.ref_name }}
restore-keys: |
flatten-checksums-main
- name: Install test dependencies
run: pip install pytest
- name: Run pre-commit
uses: pre-commit/[email protected]