Generate v2025.2.4 #1237
This file contains 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: CI | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
jobs: | |
lint: | |
name: Lint | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out the repository | |
uses: actions/checkout@v4 | |
- name: Prepare and install deps | |
uses: ./.github/actions/install-deps | |
- uses: actions/cache@v4 | |
name: Cache pre-commit hooks | |
with: | |
path: ~/.cache/pre-commit/ | |
key: > | |
${{ format('pre-commit-{0}-py{1}-{2}', | |
runner.os, | |
env.PYTHON_VERSION, | |
hashFiles('.pre-commit-config.yaml') | |
) }} | |
- name: Run pre-commit on all files | |
run: | | |
uvx pre-commit run --all-files --show-diff-on-failure --color=always |