From e15c716906025bc16e74f89e286c1056d9c58aea Mon Sep 17 00:00:00 2001 From: Rafael Guterres Jeffman <rjeffman@redhat.com> Date: Thu, 9 Dec 2021 22:03:15 -0300 Subject: [PATCH] upstream CI: Enable ansible-doc-test for ansible-core 2.12. --- .github/workflows/docs.yml | 28 +++++++++++++++++++++++++--- 1 file changed, 25 insertions(+), 3 deletions(-) diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 51a17c04..27baca9b 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -12,9 +12,11 @@ jobs: - uses: actions/setup-python@v2 with: python-version: '3.x' - - name: Run ansible-doc-test + - 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: @@ -25,9 +27,27 @@ jobs: - uses: actions/setup-python@v2 with: python-version: '3.x' - - name: Run ansible-doc-test + - 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. + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-python@v2 + with: + python-version: '3.x' + - name: Install Ansible 2.12 + run: | + python -m pip install "ansible-core >=2.12,<2.13" + - name: Run ansible-doc-test + 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 check_docs_latest: @@ -38,7 +58,9 @@ jobs: - uses: actions/setup-python@v2 with: python-version: '3.x' - - name: Run ansible-doc-test + - name: Install Ansible-latest run: | python -m pip install ansible + - name: Run ansible-doc-test + run: | ANSIBLE_LIBRARY="." ANSIBLE_DOC_FRAGMENT_PLUGINS="." python utils/ansible-doc-test -v roles plugins -- GitLab