Skip to content

Commit 2ba8b51

Browse files
committed
ci(python): add
Signed-off-by: Me0wo <[email protected]>
1 parent b6b2354 commit 2ba8b51

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

.github/workflows/python.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Python CI
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
paths:
7+
- 'Updater/**'
8+
- '.github/workflows/python.yml'
9+
pull_request:
10+
paths:
11+
- 'Updater/**'
12+
- '.github/workflows/python.yml'
13+
workflow_dispatch:
14+
15+
jobs:
16+
lint:
17+
runs-on: ubuntu-latest
18+
19+
steps:
20+
- name: Checkout repository
21+
uses: actions/checkout@v4
22+
23+
- name: Setup Python
24+
uses: actions/setup-python@v5
25+
with:
26+
python-version: 'latest'
27+
28+
- name: Install flake8
29+
run: pip install flake8
30+
31+
- name: Run flake8
32+
run: flake8 .

0 commit comments

Comments
 (0)