Skip to content

tests + config + packaging #minor #45

tests + config + packaging #minor

tests + config + packaging #minor #45

Workflow file for this run

name: pre-commit
on: [pull_request]
jobs:
pre-commit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: '3.9'
cache: 'pip'
- id: cache-pre-commit-envs
uses: actions/cache@v3
with:
path: ~/.cache/pre-commit
key: ${{ runner.os }}-pre-commit-${{ hashFiles('.pre-commit-config.yaml') }}
- id: install-requirements
# make sure to also update `pyproject.toml` with the same requirements
run: pip install "pre-commit~=3.7.0"
- name: pre-commit
id: pre-commit
run: |
set -o pipefail
pre-commit run --all-files