chore: pre-commit run #5
This file contains hidden or 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: Pre-commit checks | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
branches: [main] | |
jobs: | |
pre-commit: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Install UV and Python | |
uses: astral-sh/setup-uv@v5 | |
with: | |
version: "latest" | |
python-version: "3.11" | |
- name: Symlink uv to expected path for pre-commit-uv | |
run: | | |
mkdir -p ~/.local/bin | |
ln -s $(which uv) ~/.local/bin/uv | |
- run: uv venv | |
- run: uv sync --dev | |
- run: uv add pytest==7.4.3 | |
- uses: tox-dev/action-pre-commit-uv@v1 | |
with: | |
extra_args: --all-files |