Skip to content

Commit

Permalink
Update pythonpackage.yml
Browse files Browse the repository at this point in the history
Add Python versions 3.6 and 3.8.
Configure flake8 max line length to 88 as per Black formatter setting.
  • Loading branch information
nicholsondarius committed Jun 23, 2020
1 parent 81d2b19 commit b220712
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/pythonpackage.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: Python package

on: [push]
on: [push, pull_request]

jobs:
build:
Expand All @@ -9,7 +9,7 @@ jobs:
strategy:
max-parallel: 4
matrix:
python-version: [3.7]
python-version: [3.6, 3.7, 3.8]

steps:
- uses: actions/checkout@v1
Expand All @@ -31,8 +31,7 @@ jobs:
pip install flake8
# stop the build if there are Python syntax errors or undefined names
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=88 --statistics
- name: Test with pytest
env:
COVERALLS_REPO_TOKEN: ${{ secrets.github_token }}
Expand Down

0 comments on commit b220712

Please sign in to comment.