QGIS/.github/workflows/flake8.yml

29 lines
560 B
YAML
Raw Normal View History

name: flake8
2020-05-05 20:41:04 +02:00
on:
push:
paths:
- '**.py'
pull_request:
paths:
- '**.py'
2020-05-05 20:41:04 +02:00
jobs:
2020-05-05 21:00:42 +02:00
flake8_py3:
2020-06-25 08:04:03 +02:00
name: Python Lint
2020-05-05 20:41:04 +02:00
runs-on: ubuntu-latest
steps:
2020-05-05 21:00:42 +02:00
- name: Setup Python
uses: actions/setup-python@v1
with:
python-version: 3.7
2020-05-05 21:00:42 +02:00
architecture: x64
2020-05-05 22:40:03 +02:00
- name: Checkout
uses: actions/checkout@v2
2020-05-05 21:00:42 +02:00
- name: Run flake8
2020-06-25 08:04:03 +02:00
uses: julianwachholz/flake8-action@v1.0.0
2020-05-05 21:00:42 +02:00
with:
2020-06-25 08:04:03 +02:00
checkName: 'Python Lint'
2020-05-05 21:00:42 +02:00
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}