mirror of
https://github.com/freeipa/ansible-freeipa.git
synced 2026-07-25 00:44:42 +00:00
Update Github workflow linter and check tools.
Update Github workflow tools to match the versions on Fedora 37.
This commit is contained in:
73
.github/workflows/docs.yml
vendored
73
.github/workflows/docs.yml
vendored
@@ -4,41 +4,7 @@ on:
|
|||||||
- push
|
- push
|
||||||
- pull_request
|
- pull_request
|
||||||
jobs:
|
jobs:
|
||||||
check_docs_29:
|
check_docs_oldest_supported:
|
||||||
name: Check Ansible Documentation with Ansible 2.9.
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v3.1.0
|
|
||||||
with:
|
|
||||||
fetch-depth: 0
|
|
||||||
- uses: actions/setup-python@v4.3.0
|
|
||||||
with:
|
|
||||||
python-version: '3.x'
|
|
||||||
- name: Install Ansible 2.9
|
|
||||||
run: |
|
|
||||||
python -m pip install "ansible < 2.10"
|
|
||||||
- name: Run ansible-doc-test
|
|
||||||
run: |
|
|
||||||
ANSIBLE_LIBRARY="." ANSIBLE_DOC_FRAGMENT_PLUGINS="." python utils/ansible-doc-test -v roles plugins
|
|
||||||
|
|
||||||
check_docs_2_11:
|
|
||||||
name: Check Ansible Documentation with ansible-core 2.11.
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v3.1.0
|
|
||||||
with:
|
|
||||||
fetch-depth: 0
|
|
||||||
- uses: actions/setup-python@v4.3.0
|
|
||||||
with:
|
|
||||||
python-version: '3.x'
|
|
||||||
- name: Install Ansible 2.11
|
|
||||||
run: |
|
|
||||||
python -m pip install "ansible-core >=2.11,<2.12"
|
|
||||||
- name: Run ansible-doc-test
|
|
||||||
run: |
|
|
||||||
ANSIBLE_LIBRARY="." ANSIBLE_DOC_FRAGMENT_PLUGINS="." python utils/ansible-doc-test -v roles plugins
|
|
||||||
|
|
||||||
check_docs_2_12:
|
|
||||||
name: Check Ansible Documentation with ansible-core 2.12.
|
name: Check Ansible Documentation with ansible-core 2.12.
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
@@ -53,10 +19,43 @@ jobs:
|
|||||||
python -m pip install "ansible-core >=2.12,<2.13"
|
python -m pip install "ansible-core >=2.12,<2.13"
|
||||||
- name: Run ansible-doc-test
|
- name: Run ansible-doc-test
|
||||||
run: |
|
run: |
|
||||||
python -m pip install "ansible-core >=2.12,<2.13"
|
|
||||||
ANSIBLE_LIBRARY="." ANSIBLE_DOC_FRAGMENT_PLUGINS="." python utils/ansible-doc-test -v roles plugins
|
ANSIBLE_LIBRARY="." ANSIBLE_DOC_FRAGMENT_PLUGINS="." python utils/ansible-doc-test -v roles plugins
|
||||||
|
|
||||||
check_docs_latest:
|
check_docs_previous:
|
||||||
|
name: Check Ansible Documentation with ansible-core 2.13.
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v3.1.0
|
||||||
|
with:
|
||||||
|
fetch-depth: 0
|
||||||
|
- uses: actions/setup-python@v4.3.0
|
||||||
|
with:
|
||||||
|
python-version: '3.x'
|
||||||
|
- name: Install Ansible 2.13
|
||||||
|
run: |
|
||||||
|
python -m pip install "ansible-core >=2.13,<2.14"
|
||||||
|
- name: Run ansible-doc-test
|
||||||
|
run: |
|
||||||
|
ANSIBLE_LIBRARY="." ANSIBLE_DOC_FRAGMENT_PLUGINS="." python utils/ansible-doc-test -v roles plugins
|
||||||
|
|
||||||
|
check_docs_current:
|
||||||
|
name: Check Ansible Documentation with ansible-core 2.14.
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v3.1.0
|
||||||
|
with:
|
||||||
|
fetch-depth: 0
|
||||||
|
- uses: actions/setup-python@v4.3.0
|
||||||
|
with:
|
||||||
|
python-version: '3.x'
|
||||||
|
- name: Install Ansible 2.14
|
||||||
|
run: |
|
||||||
|
python -m pip install "ansible-core >=2.14,<2.15"
|
||||||
|
- name: Run ansible-doc-test
|
||||||
|
run: |
|
||||||
|
ANSIBLE_LIBRARY="." ANSIBLE_DOC_FRAGMENT_PLUGINS="." python utils/ansible-doc-test -v roles plugins
|
||||||
|
|
||||||
|
check_docs_ansible_latest:
|
||||||
name: Check Ansible Documentation with latest Ansible version.
|
name: Check Ansible Documentation with latest Ansible version.
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
|
|||||||
8
.github/workflows/lint.yml
vendored
8
.github/workflows/lint.yml
vendored
@@ -16,7 +16,7 @@ jobs:
|
|||||||
python-version: "3.x"
|
python-version: "3.x"
|
||||||
- name: Run ansible-lint
|
- name: Run ansible-lint
|
||||||
run: |
|
run: |
|
||||||
pip install ansible-core==2.11.6 ansible-lint
|
pip install "ansible-core >=2.14,<2.15" ansible-lint
|
||||||
find playbooks roles tests -name '*.yml' ! -name "env_*" ! -name "tasks_*" -exec ansible-lint --force-color {} \+
|
find playbooks roles tests -name '*.yml' ! -name "env_*" ! -name "tasks_*" -exec ansible-lint --force-color {} \+
|
||||||
env:
|
env:
|
||||||
ANSIBLE_MODULE_UTILS: plugins/module_utils
|
ANSIBLE_MODULE_UTILS: plugins/module_utils
|
||||||
@@ -34,7 +34,7 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
python-version: "3.x"
|
python-version: "3.x"
|
||||||
- name: Run yaml-lint
|
- name: Run yaml-lint
|
||||||
uses: ibiqlik/action-yamllint@v1
|
uses: ibiqlik/action-yamllint@v3.1.1
|
||||||
|
|
||||||
pydocstyle:
|
pydocstyle:
|
||||||
name: Verify pydocstyle
|
name: Verify pydocstyle
|
||||||
@@ -63,7 +63,7 @@ jobs:
|
|||||||
python-version: "3.x"
|
python-version: "3.x"
|
||||||
- name: Run flake8
|
- name: Run flake8
|
||||||
run: |
|
run: |
|
||||||
pip install flake8
|
pip install flake8 flake8-bugbear
|
||||||
flake8
|
flake8
|
||||||
|
|
||||||
pylint:
|
pylint:
|
||||||
@@ -78,7 +78,7 @@ jobs:
|
|||||||
python-version: "3.x"
|
python-version: "3.x"
|
||||||
- name: Run pylint
|
- name: Run pylint
|
||||||
run: |
|
run: |
|
||||||
pip install pylint==2.13.7 wrapt==1.14.0
|
pip install pylint==2.14.4 wrapt==1.14.0
|
||||||
pylint plugins roles --disable=import-error
|
pylint plugins roles --disable=import-error
|
||||||
|
|
||||||
shellcheck:
|
shellcheck:
|
||||||
|
|||||||
Reference in New Issue
Block a user