Skip to content

ci: use 3.7 in pre-commit GH action #285

ci: use 3.7 in pre-commit GH action

ci: use 3.7 in pre-commit GH action #285

name: pre-commit check
on:
pull_request:
jobs:
pre-commit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-python@v5
with:
python-version: 3.7
- id: changed-files
uses: tj-actions/changed-files@v42
- uses: pre-commit/[email protected]
with:
extra_args: --files ${{ steps.changed-files.outputs.all_changed_files }}