Skip to content

Commit

Permalink
build: on push GitHub Action to lint Python code
Browse files Browse the repository at this point in the history
Blocked by: #1929
  • Loading branch information
cclauss authored and rvagg committed Sep 30, 2019
1 parent 2920347 commit 303e626
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: on push
on: [push]
jobs:
build:
runs-on: ubuntu-latest
strategy:
max-parallel: 2
matrix:
python-version: [2.7, 3.7]
steps:
- uses: actions/checkout@v1
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Lint with flake8
run: |
pip install flake8
flake8 --version
flake8 .

0 comments on commit 303e626

Please sign in to comment.