Precommit updates (#40) #151
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: build | |
on: | |
pull_request: | |
push: | |
branches: | |
- "main" | |
jobs: | |
check-pre-commit-hooks: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout branch | |
uses: actions/checkout@v2 | |
with: | |
ref: ${{ env.CHECKOUT_BRANCH }} | |
- name: Setup Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: "3.8" | |
architecture: x64 | |
- name: Prepare pre-commit validators | |
run: | | |
pip install pre-commit | |
pre-commit install | |
- name: Check code compliance with pre-commit validators | |
run: pre-commit run --all-files |