This repository has been archived by the owner on Oct 17, 2024. It is now read-only.
LogicKor V2 Update #11
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 | |
on: | |
pull_request: | |
push: | |
jobs: | |
pre-commit: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: '3.8' | |
- name: Get pip cache dir | |
id: pip-cache | |
run: | | |
echo "dir=$(pip cache dir)" >> $GITHUB_OUTPUT | |
- name: pip/pre-commit cache | |
uses: actions/cache@v3 | |
with: | |
path: | | |
${{ steps.pip-cache.outputs.dir }} | |
~/.cache/pre-commit | |
key: ${{ runner.os }}-pip-pre-commit-${{ hashFiles('**/.pre-commit-config.yaml') }} | |
restore-keys: | | |
${{ runner.os }}-pip-pre-commit | |
- name: pre-commit # don't use in self-hosted `- uses: pre-commit/[email protected]` | |
run: | | |
pip install pre-commit | |
pre-commit install --install-hooks | |
pre-commit run -a |