Better error message #58
Workflow file for this run
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: Pre-commit hooks | |
on: | |
pull_request: | |
branches: | |
- develop | |
jobs: | |
pre-commit: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.11.9' | |
- name: Cache pre-commit environments | |
id: cache-pre-commit | |
uses: actions/cache@v3 | |
with: | |
path: ~/.cache/pre-commit | |
key: ${{ runner.os }}-pre-commit-${{ hashFiles('.pre-commit-config.yaml') }} | |
restore-keys: | | |
${{ runner.os }}-pre-commit- | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install pip-tools | |
pip-compile -o requirements.txt pyproject.toml | |
pip install --requirement requirements.txt | |
- name: Run pre-commit hooks | |
run: pre-commit run --all-files |