Skip to content

Commit d8be226

Browse files
committed
Add flake8 lint workflow.
1 parent 7dea0ea commit d8be226

File tree

2 files changed

+27
-3
lines changed

2 files changed

+27
-3
lines changed

.github/workflows/main.yaml

Lines changed: 26 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,34 @@ name: Main CI
33
on: [push]
44

55
jobs:
6-
#lint:
7-
# FIXME
6+
lint:
7+
runs-on: ubuntu-latest
8+
timeout-minutes: 10
9+
strategy:
10+
matrix:
11+
python-version:
12+
- '3.12'
13+
steps:
14+
- uses: actions/checkout@v4
15+
- name: Use Python ${{ matrix.python-version }}
16+
uses: actions/setup-python@v4
17+
with:
18+
python-version: ${{ matrix.python-version }}
19+
cache: 'pip'
20+
- name: Install testing dependencies
21+
run: |
22+
python -m pip install --upgrade pip
23+
pip install -r requirements-test.txt
24+
- name: Lint
25+
# FIXME
26+
continue-on-error: true
27+
run: |
28+
flake8 lib/pyld tests --count --show-source --statistics
29+
env:
30+
LOADER: ${{ matrix.loader }}
831
test:
932
runs-on: ubuntu-latest
10-
#needs: [lint]
33+
needs: [lint]
1134
timeout-minutes: 10
1235
strategy:
1336
matrix:

requirements-test.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
flake8

0 commit comments

Comments
 (0)