feat: add pre commit #2
This file contains 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: run pre-commit and type-checking | |
on: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
jobs: | |
pre-commit: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up pixi | |
uses: prefix-dev/[email protected] | |
with: | |
environments: >- | |
lint | |
type-checking | |
- name: pre-commit | |
run: pixi run pre-commit-run --color=always --show-diff-on-failure --all | |
- name: type check | |
run: pixi run type-check |