add flake8 action
This commit is contained in:
parent
16e74c281c
commit
04ad1674a9
1 changed files with 26 additions and 0 deletions
26
.github/workflows/lint.yml
vendored
Normal file
26
.github/workflows/lint.yml
vendored
Normal file
|
@ -0,0 +1,26 @@
|
||||||
|
name: Lint
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
paths:
|
||||||
|
- '*.py'
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
flake8_py3:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Setup Python
|
||||||
|
uses: actions/setup-python@v1
|
||||||
|
with:
|
||||||
|
python-version: 3.9.9
|
||||||
|
architecture: x64
|
||||||
|
- name: Checkout Stacosys
|
||||||
|
uses: actions/checkout@master
|
||||||
|
- 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 }}
|
Loading…
Add table
Reference in a new issue