Skip to content

Commit

Permalink
add precommit ci
Browse files Browse the repository at this point in the history
  • Loading branch information
niyiyu committed Feb 27, 2024
1 parent fa3b137 commit bfdfb2a
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/precommit.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: pre-commit checks

on:
pull_request:
push: { branches: [main] }
workflow_dispatch:

jobs:
pre-commit-checks:
runs-on: ubuntu-22.04
steps:
- name: Checkout Repo
uses: actions/checkout@v3.3.0
- name: Setup Python
uses: actions/setup-python@v4.5.0
with:
python-version: '3.10'
- name: Install pre-commit and Jupyter
run: pip install pre-commit==3.3.3 jupyter==1.0.0
- name: Run pre-commit checks
run: pre-commit run --show-diff-on-failure

0 comments on commit bfdfb2a

Please sign in to comment.