-
Notifications
You must be signed in to change notification settings - Fork 287
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #768 from blink1073/make-hooks-manual
- Loading branch information
Showing
3 changed files
with
20 additions
and
19 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,28 +10,20 @@ concurrency: | |
cancel-in-progress: true | ||
|
||
jobs: | ||
# Run "pre-commit run --all-files" | ||
# Run "pre-commit run --all-files --hook-stage=manual" | ||
pre-commit: | ||
name: Run pre-commit hook | ||
|
||
runs-on: ubuntu-latest | ||
timeout-minutes: 2 | ||
|
||
env: | ||
PYTHON_VERSION: 3.8 | ||
|
||
timeout-minutes: 5 | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
|
||
- name: Set up Python ${{ env.PYTHON_VERSION }} | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: ${{ env.PYTHON_VERSION }} | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v3 | ||
- name: Run pre-commit | ||
uses: pre-commit/[email protected] | ||
|
||
with: | ||
extra_args: --all-files --hook-stage=manual | ||
- name: Help message if pre-commit fail | ||
if: ${{ failure() }} | ||
run: | | ||
|
@@ -41,7 +33,7 @@ jobs: | |
echo "or you can run by hand on staged files with" | ||
echo " pre-commit run" | ||
echo "or after-the-fact on already committed files with" | ||
echo " pre-commit run --all-files" | ||
echo " pre-commit run --all-files --hook-stage=manual" | ||
build-n-test-n-coverage: | ||
name: Build, test and code coverage | ||
|
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
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