Bump the github-dependencies group across 1 directory with 5 updates #768
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 | |
| on: [push, pull_request] | |
| permissions: | |
| contents: read | |
| jobs: | |
| pre-commit: | |
| name: ππΌββοΈββ‘οΈ Run pre-commit | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: β Checkout code | |
| uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 | |
| with: | |
| persist-credentials: false | |
| - name: π Set up Python | |
| uses: actions/setup-python@ece7cb06caefa5fff74198d8649806c4678c61a1 | |
| with: | |
| python-version: '3.14' | |
| - name: π Set Python Version Hash | |
| run: echo "PY=$(python -VV | sha256sum | cut -d' ' -f1)" >> "$GITHUB_ENV" | |
| - name: π₯‘ Cache pre-commit | |
| uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 | |
| with: | |
| path: ~/.cache/pre-commit | |
| key: pre-commit|${{ env.PY }}|${{ hashFiles('.pre-commit-config.yaml') }} | |
| - name: ποΈ Install pre-commit | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install pre-commit | |
| - name: πββοΈ Run pre-commit | |
| run: pre-commit run --color=always --all-files --show-diff-on-failure | |
| - name: ππΌββοΈββ‘οΈ Run manual pre-commit hooks | |
| run: pre-commit run --color=always --all-files --hook-stage manual --show-diff-on-failure |