Skip to content

chore: Add lint.yml workflow. #1

chore: Add lint.yml workflow.

chore: Add lint.yml workflow. #1

Workflow file for this run

name: Lint
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
pre-commit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.12'
- name: Install pre-commit
run: pip install pre-commit
- name: Configure CMake
run: cmake -B build -S .
- name: Run pre-commit
run: pre-commit run --all-files