Skip to content

Update actions/checkout action to v7 #79

Update actions/checkout action to v7

Update actions/checkout action to v7 #79

Workflow file for this run

---
name: pre-commit
env:
GIT_REF: ${{ github.event.pull_request.head.sha || github.sha }}
"on":
push:
branches: [main]
pull_request:
workflow_dispatch:
concurrency:
# Abort pending builds if there's an update.
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
pre-commit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7
with:
ref: ${{ env.GIT_REF }}
- uses: actions/cache@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5.0.5
with:
path: ~/.cache/pre-commit
key: pre-commit-${{ runner.os }}-${{ hashFiles('.pre-commit-config.yaml') }}
- uses: pre-commit/action@2c7b3805fd2a0fd8c1884dcaebf91fc102a13ecd # v3.0.1
env:
# mypy runs in tox (tox -e type); skip here to avoid a full uv sync
# that breaks pre-commit's hook caching.
SKIP: mypy