Reusable GitHub Actions
Install pre-commit using uv, init it and setup caching
All inputs are optional.
# default values of all inputs
- name: Setup pre-commit
uses: muzimuzhi/actions/setup-pre-commit-uv@main
with:
setup-uv: true
version: 'latest'
config: '.pre-commit-config.yaml'
run-pre-commit: true
args: '--all-files --show-diff-on-failure --color=always'uv cache is disabled by default (why). If needed,
setup uv beforehand, then use this action with setup-uv: false.
- name: Setup uv
uses: astral-sh/setup-uv@v6
with:
enable-cache: true # enabled on GitHub-hosted runners by default
- name: Setup pre-commit
uses: muzimuzhi/actions/setup-pre-commit-uv@main
with:
setup-uv: falseInstall dependencies for ppmcheckpdf
LaTeX package or the ppmcheckpdf.lua in
muzimuzhi/latex-zutil repository.