Skip to content

Commit cd9346f

Browse files
committed
moved lint to his own file
1 parent 649138d commit cd9346f

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

.github/workflows/lint.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Makefile CI
2+
3+
on:
4+
push:
5+
branches: [ "main" ]
6+
pull_request:
7+
branches: [ "main" ]
8+
workflow_dispatch:
9+
10+
jobs:
11+
lint:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: Checkout code
15+
uses: actions/checkout@v4
16+
17+
- name: Set up Python
18+
uses: actions/setup-python@v4
19+
with:
20+
python-version: "3.x"
21+
22+
- name: Install flake8
23+
run: |
24+
python -m pip install --upgrade pip
25+
pip install flake8
26+
27+
- name: Run flake8 lint
28+
run: |
29+
# Lint the Python code in src/ and tests/
30+
flake8 src/

0 commit comments

Comments
 (0)