feat: use shared pre-commit-hooks from kellerlabs/pre-commit-hooks #729
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| --- | |
| 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] |