Skip to content

Commit 303e626

Browse files
cclaussrvagg
authored andcommitted
build: on push GitHub Action to lint Python code
Blocked by: #1929
1 parent 2920347 commit 303e626

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

.github/workflows/push.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: on push
2+
on: [push]
3+
jobs:
4+
build:
5+
runs-on: ubuntu-latest
6+
strategy:
7+
max-parallel: 2
8+
matrix:
9+
python-version: [2.7, 3.7]
10+
steps:
11+
- uses: actions/checkout@v1
12+
- name: Set up Python ${{ matrix.python-version }}
13+
uses: actions/setup-python@v1
14+
with:
15+
python-version: ${{ matrix.python-version }}
16+
- name: Install dependencies
17+
run: |
18+
python -m pip install --upgrade pip
19+
pip install -r requirements.txt
20+
- name: Lint with flake8
21+
run: |
22+
pip install flake8
23+
flake8 --version
24+
flake8 .

0 commit comments

Comments
 (0)