Skip to content

Commit fb675de

Browse files
authored
Run lint check for prs (#139)
1 parent 25f70d4 commit fb675de

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

.github/workflows/pull_request.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
on:
2+
pull_request:
3+
branches:
4+
- main
5+
6+
jobs:
7+
check_lint:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@v4
11+
- uses: actions/setup-python@v4
12+
with:
13+
python-version: 3.8
14+
- name: Install dependencies
15+
run: |
16+
python -m pip install --upgrade pip
17+
pip install pre-commit black isort clang-format
18+
- name: Run lint
19+
run: |
20+
pre-commit run --all-files

0 commit comments

Comments
 (0)