Skip to content

Commit 800d55a

Browse files
Merge pull request #12 from jonathanrocher/maint/add_flake8_action
Add an action to check code style
2 parents 4604227 + a83e4b3 commit 800d55a

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

.github/workflows/flake8.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Flake8
2+
3+
on:
4+
pull_request
5+
6+
jobs:
7+
flake8:
8+
strategy:
9+
matrix:
10+
os: [ubuntu-latest]
11+
python-version: ['3.6']
12+
13+
runs-on: ${{ matrix.os }}
14+
15+
steps:
16+
- uses: actions/checkout@v3
17+
- name: Set up Python ${{ matrix.python-version }}
18+
uses: actions/setup-python@v3
19+
with:
20+
python-version: ${{ matrix.python-version }}
21+
- name: Install flake8
22+
run: |
23+
python -m pip install --upgrade pip
24+
python -m pip install flake8
25+
- name: Run flake8
26+
run: |
27+
python -m flake8

0 commit comments

Comments
 (0)