2020-09-07 15:55:41 +08:00
|
|
|
name: flake8
|
2020-10-02 03:59:53 +08:00
|
|
|
on: [pull_request]
|
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
|
2020-10-02 03:59:53 +08:00
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
python-version: [ '3.6', '3.7', '3.8' ]
|
|
|
|
name: Python ${{ matrix.python-version }}
|
2020-09-07 15:55:41 +08:00
|
|
|
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 03:59:53 +08:00
|
|
|
python-version: ${{ matrix.python-version }}
|
|
|
|
architecture: x64
|
|
|
|
- run: pip install flake8
|
|
|
|
- run: flake8 --max-line-length 160 ./library/ ./tests/library/
|