Add more detailed steps in quick start #15
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: Run PreCommit | |
on: | |
push | |
jobs: | |
pre-commit: | |
if: github.event.pull_request.draft == false | |
name: pre-commit checks | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Refresh source list | |
run: | | |
sudo apt update | |
- name: Install precommit | |
run: | | |
python -m pip install pre-commit | |
- name: Install hooks | |
run: | | |
pre-commit install --install-hooks | |
- name: Run Pre-Commit | |
run: > | |
pre-commit run | |
--all-files | |
--show-diff-on-failure | |
-v |