Skip to content

Commit d41965f

Browse files
committed
Add GitHub Actions workflow for Black code quality check
1 parent cfc0ebf commit d41965f

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

.github/workflows/code_quality.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Code Quality Check
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
- dev
8+
pull_request:
9+
branches:
10+
- main
11+
12+
jobs:
13+
black-format-check:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: actions/checkout@v3
17+
- name: Set up Python
18+
uses: actions/setup-python@v4
19+
with:
20+
python-version: '3.8'
21+
22+
- name: Install Black
23+
run: pip install black
24+
25+
- name: Check Code Formatting with Black
26+
run: black --check .

0 commit comments

Comments
 (0)