mirror of https://github.com/ceph/ceph-ansible.git
tests: add github workflows
Add github workflow. Especially for flake8 for now. Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com> (cherry picked from commitpull/5905/head1ee626a1b3
) (cherry picked from commited6ae6815d
)
parent
dda1dec67e
commit
aefddac8f7
|
@ -0,0 +1,25 @@
|
|||
name: flake8
|
||||
on:
|
||||
pull_request:
|
||||
jobs:
|
||||
flake8:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v1
|
||||
- uses: ricardochaves/python-lint@v1.3.0
|
||||
with:
|
||||
python-root-list: "./library/"
|
||||
use-pylint: false
|
||||
use-pycodestyle: false
|
||||
use-flake8: true
|
||||
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