chore(deps): bump actions/cache from 4 to 5 (#1097) #2360
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: | |
| - "**" | |
| jobs: | |
| pre_commit: | |
| runs-on: ubuntu-latest | |
| env: | |
| # Disable implicitly syncing before running - we run an explicit sync first. | |
| UV_NO_SYNC: true | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Set up uv | |
| uses: astral-sh/setup-uv@v7 | |
| with: | |
| version: "latest" | |
| python-version: 3.13 | |
| enable-cache: true | |
| cache-suffix: "pre-commit" | |
| - name: Install development dependencies | |
| run: uv sync --dev --locked | |
| - name: Debug - uv pip freeze | |
| run: uv pip freeze | |
| - name: Remove fail_fast from Pre-commit config | |
| run: sed -e "/fail_fast/d" .pre-commit-config.yaml > /tmp/.pre-commit-config-ci.yaml | |
| - name: Run Pre-commit checks | |
| run: SKIP=no-commit-to-branch uv run pre-commit run --all-files --show-diff-on-failure --config /tmp/.pre-commit-config-ci.yaml |