Skip to content

Commit 337ebd3

Browse files
committed
add Python linting GH Action configuration
1 parent 11f3163 commit 337ebd3

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

.github/workflows/py-lint.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Python Lints
2+
3+
on: [push]
4+
5+
jobs:
6+
build:
7+
runs-on: ${{ matrix.os }}
8+
strategy:
9+
matrix:
10+
os: [ubuntu-latest]
11+
python-version: [3.8]
12+
13+
steps:
14+
- uses: actions/checkout@v2
15+
- name: Set up Python ${{ matrix.python-version }}
16+
uses: actions/setup-python@v2
17+
with:
18+
python-version: ${{ matrix.python-version }}
19+
- name: Install Python testing dependencies
20+
run: pip install --upgrade flake8
21+
- name: flake8 Lint
22+
uses: py-actions/flake8@v1
23+
with:
24+
max-line-length: "90"
25+
path: "lib/fdiff"

0 commit comments

Comments
 (0)