Skip to content

Commit

Permalink
Add precommit Github action
Browse files Browse the repository at this point in the history
  • Loading branch information
peterprescott committed Sep 4, 2023
1 parent 716bc24 commit 84356e5
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/pre_commit_check.yml
@@ -0,0 +1,26 @@
name: Pre-commit Check

on:
push:
branches:
- main
- dev

jobs:
pre_commit:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: "3.10"

- name: Install pre-commit
run: pip install pre-commit

- name: Run pre-commit hooks
run: pre-commit run --all-files

0 comments on commit 84356e5

Please sign in to comment.