mirror of
https://github.com/freeipa/ansible-freeipa.git
synced 2026-07-25 00:44:42 +00:00
ci: Run Github linter verification workflow in different jobs.
This patch modify Github 'lint' workflow to execute each linter verifications as a separate job. This will allow us to easily see which linter has failed, and ensure that all are executed, even if one fails.
This commit is contained in:
50
.github/workflows/lint.yml
vendored
50
.github/workflows/lint.yml
vendored
@@ -4,15 +4,14 @@ on:
|
|||||||
- push
|
- push
|
||||||
- pull_request
|
- pull_request
|
||||||
jobs:
|
jobs:
|
||||||
linters:
|
ansible_lint:
|
||||||
name: Run Linters
|
name: Verify ansible-lint
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- uses: actions/setup-python@v2
|
- uses: actions/setup-python@v2
|
||||||
with:
|
with:
|
||||||
python-version: "3.6"
|
python-version: "3.x"
|
||||||
|
|
||||||
- name: Run ansible-lint
|
- name: Run ansible-lint
|
||||||
uses: ansible/ansible-lint-action@master
|
uses: ansible/ansible-lint-action@master
|
||||||
with:
|
with:
|
||||||
@@ -26,12 +25,51 @@ jobs:
|
|||||||
ANSIBLE_MODULE_UTILS: plugins/module_utils
|
ANSIBLE_MODULE_UTILS: plugins/module_utils
|
||||||
ANSIBLE_LIBRARY: plugins/modules
|
ANSIBLE_LIBRARY: plugins/modules
|
||||||
|
|
||||||
|
yamllint:
|
||||||
|
name: Verify yamllint
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
- uses: actions/setup-python@v2
|
||||||
|
with:
|
||||||
|
python-version: "3.x"
|
||||||
- name: Run yaml-lint
|
- name: Run yaml-lint
|
||||||
uses: ibiqlik/action-yamllint@v1
|
uses: ibiqlik/action-yamllint@v1
|
||||||
|
|
||||||
- name: Run Python linters
|
pydocstyle:
|
||||||
uses: rjeffman/python-lint-action@v2
|
name: Verify pydocstyle
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
- uses: actions/setup-python@v2
|
||||||
|
with:
|
||||||
|
python-version: "3.x"
|
||||||
|
- name: Run pydocstyle
|
||||||
|
run: |
|
||||||
|
pip install pydocstyle
|
||||||
|
pydocstyle
|
||||||
|
|
||||||
|
flake8:
|
||||||
|
name: Verify flake8
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
- uses: actions/setup-python@v2
|
||||||
|
with:
|
||||||
|
python-version: "3.x"
|
||||||
|
- name: Run flake8
|
||||||
|
run: |
|
||||||
|
pip install flake8
|
||||||
|
flake8
|
||||||
|
|
||||||
|
pylint:
|
||||||
|
name: Verify pylint
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
- uses: actions/setup-python@v2
|
||||||
|
with:
|
||||||
|
python-version: "3.x"
|
||||||
- name: Run pylint
|
- name: Run pylint
|
||||||
run: |
|
run: |
|
||||||
pip install pylint==2.8.2
|
pip install pylint==2.8.2
|
||||||
|
|||||||
Reference in New Issue
Block a user