Loading files
This file is pinned to the selected release. Download the original to open it in your design tool.
8d533c96dThis file is pinned to the selected release. Download the original to open it in your design tool.
---
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: Make scripts executable
run: chmod +x .githooks/flatten-validate
- name: Install test dependencies
run: pip install pytest
- name: Run pre-commit
uses: pre-commit/action@v3.0.1