Skip to content

Commit

Permalink
Add: [Actions] check for flake8 and black issues
Browse files Browse the repository at this point in the history
  • Loading branch information
TrueBrain committed Jan 12, 2020
1 parent 084aaf0 commit f4d576c
Showing 1 changed file with 27 additions and 2 deletions.
29 changes: 27 additions & 2 deletions .github/workflows/testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,32 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Checkout submodules
uses: openttd/actions/checkout@v1
- name: Build
run: docker build .

flake8:
name: Flake8
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Flake8
uses: TrueBrain/actions-flake8@master
with:
path: dorpsgek

black:
name: Black
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Set up Python 3.7
uses: actions/setup-python@v1
with:
python-version: 3.7
- name: Black
run: |
python -m pip install --upgrade pip
pip install black
black -l 120 --check dorpsgek

0 comments on commit f4d576c

Please sign in to comment.