Merge pull request from SchrodingersGat/workflows

Add code style workflow
This commit is contained in:
Oliver 2021-03-30 22:41:27 +11:00 committed by GitHub
commit 865436c42a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

25
.github/workflows/style.yaml vendored Normal file
View File

@ -0,0 +1,25 @@
name: Style Checks
on: push
jobs:
pep:
runs-on: ubuntu-latest
strategy:
max-parallel: 4
matrix:
python-version: [3.7]
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install deps
run: |
pip install flake8==3.8.3
pip install pep8-naming==0.11.1
flake8 InvenTree