mirror of https://github.com/ceph/ceph-ansible.git
tests: refact flake8 workflow
drop ricardochaves/python-lint action and use `run` steps instead. Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>pull/5894/head
parent
246e31c0d3
commit
f2d3432cad
|
@ -1,25 +1,18 @@
|
||||||
name: flake8
|
name: flake8
|
||||||
on:
|
on: [pull_request]
|
||||||
pull_request:
|
|
||||||
jobs:
|
jobs:
|
||||||
flake8:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
python-version: [ '3.6', '3.7', '3.8' ]
|
||||||
|
name: Python ${{ matrix.python-version }}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v1
|
- uses: actions/checkout@v2
|
||||||
- uses: ricardochaves/python-lint@v1.3.0
|
- name: Setup python
|
||||||
|
uses: actions/setup-python@v2
|
||||||
with:
|
with:
|
||||||
python-root-list: "./library/"
|
python-version: ${{ matrix.python-version }}
|
||||||
use-pylint: false
|
architecture: x64
|
||||||
use-pycodestyle: false
|
- run: pip install flake8
|
||||||
use-flake8: true
|
- run: flake8 --max-line-length 160 ./library/ ./tests/library/
|
||||||
use-black: false
|
|
||||||
use-mypy: false
|
|
||||||
use-isort: false
|
|
||||||
extra-pylint-options: ""
|
|
||||||
extra-pycodestyle-options: ""
|
|
||||||
extra-flake8-options: "--max-line-length 160"
|
|
||||||
extra-black-options: ""
|
|
||||||
extra-mypy-options: ""
|
|
||||||
extra-isort-options: ""
|
|
||||||
env:
|
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
Loading…
Reference in New Issue