github/workflows/main: use `pre-commit/action`
diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml
index 6f3998f..fc98102 100644
--- a/.github/workflows/main.yaml
+++ b/.github/workflows/main.yaml
@@ -49,19 +49,11 @@
with:
python-version: 3.x
- - name: install pre-commit
- run: pip install pre-commit
-
- name: install package
run: pip install . tomli
- - name: pre-commit cache
- uses: actions/cache@v4.0.1
- with:
- path: ~/.cache/pre-commit
- key: "${{ hashFiles('.pre-commit-config.yaml') }}"
-
- - run: pre-commit run --all-files --show-diff-on-failure
+ - name: run pre-commit
+ uses: pre-commit/action@v3.0.1
fuzz:
name: fuzz