2020-09-07 15:55:41 +08:00
|
|
|
name: flake8
|
2020-10-03 00:14:36 +08:00
|
|
|
on:
|
|
|
|
pull_request:
|
|
|
|
paths:
|
|
|
|
- 'library/**.py'
|
|
|
|
- 'tests/conftest.py'
|
|
|
|
- 'tests/library/**.py'
|
|
|
|
- 'tests/functional/tests/**.py'
|
2020-09-07 15:55:41 +08:00
|
|
|
jobs:
|
2020-10-02 03:59:53 +08:00
|
|
|
build:
|
2020-09-07 15:55:41 +08:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2020-10-02 03:59:53 +08:00
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: Setup python
|
|
|
|
uses: actions/setup-python@v2
|
2020-09-07 15:55:41 +08:00
|
|
|
with:
|
2020-10-02 04:28:17 +08:00
|
|
|
python-version: 3.8
|
2020-10-02 03:59:53 +08:00
|
|
|
architecture: x64
|
|
|
|
- run: pip install flake8
|
2020-10-04 16:32:45 +08:00
|
|
|
- run: flake8 --max-line-length 160 ./library/ ./tests/library/ ./tests/conftest.py ./tests/functional/tests/
|