Skip to content

Commit

Permalink
black8 and flake8 run on push
Browse files Browse the repository at this point in the history
  • Loading branch information
bockstaller committed Nov 12, 2020
1 parent a953afb commit 49a783f
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/development_workflow.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Tests & Formatting

on: [push, pull_request]
jobs:
black:
runs-on: ubuntu-latest
strategy:
max-parallel: 4
matrix:
python-version: [3.7]
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- uses: psf/black@stable

flake8:
runs-on: ubuntu-latest
strategy:
max-parallel: 4
matrix:
python-version: [3.7]
steps:
- name: Set up Python 3.7
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- uses: actions/checkout@v2
- name: Install flake8
run: pip install flake8
- name: Run flake8
uses: suo/flake8-github-action@releases/v1
with:
checkName: "flake8_py3" # NOTE: this needs to be the same as the job name
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 49a783f

Please sign in to comment.