2020-09-07 15:55:41 +08:00
|
|
|
name: flake8
|
2020-10-03 00:14:36 +08:00
|
|
|
on:
|
|
|
|
pull_request:
|
|
|
|
paths:
|
|
|
|
- 'library/**.py'
|
2020-11-27 03:59:29 +08:00
|
|
|
- 'module_utils/**.py'
|
2020-11-28 01:25:11 +08:00
|
|
|
- 'plugins/filter/**.py'
|
2020-10-03 00:14:36 +08:00
|
|
|
- 'tests/conftest.py'
|
|
|
|
- 'tests/library/**.py'
|
2020-11-27 03:59:29 +08:00
|
|
|
- 'tests/module_utils/**.py'
|
2020-11-28 01:25:11 +08:00
|
|
|
- 'tests/plugins/filter/**.py'
|
2020-10-03 00:14:36 +08:00
|
|
|
- '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:
|
2024-02-13 17:53:16 +08:00
|
|
|
python-version: '3.10'
|
2020-10-02 03:59:53 +08:00
|
|
|
architecture: x64
|
|
|
|
- run: pip install flake8
|
2020-11-28 01:25:11 +08:00
|
|
|
- run: flake8 --max-line-length 160 ./library/ ./module_utils/ ./plugins/filter/ ./tests/library/ ./tests/module_utils/ ./tests/plugins/filter/ ./tests/conftest.py ./tests/functional/tests/
|