Loading files
This 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: Install test dependencies
run: pip install pytest -r requirements.txt
- name: Run pre-commit
uses: pre-commit/action@v3.0.1
3bf71d80eThis file is pinned to the selected release. Download the original to open it in your design tool.