From 402fd378fa73310f88f40dc51532a857e410b13a Mon Sep 17 00:00:00 2001 From: Rafael Guterres Jeffman <rjeffman@redhat.com> Date: Tue, 10 Aug 2021 19:25:54 -0300 Subject: [PATCH] CI: pin ansible-core version for ansible-doc-test. This patch adds ansible-core version to 2.11 when evaluating documentation with ansible-doc-test, so both 2.9 (ansible) and 2.11 (ansible-core) are covered when testing documentation, along with the latest Ansible version available. --- .github/workflows/docs.yml | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 4f4db6b3..51a17c04 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -16,9 +16,22 @@ jobs: run: | python -m pip install "ansible < 2.10" 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@v2 + - uses: actions/setup-python@v2 + with: + python-version: '3.x' + - name: Run ansible-doc-test + run: | + python -m pip install "ansible-core >=2.11,<2.12" + ANSIBLE_LIBRARY="." ANSIBLE_DOC_FRAGMENT_PLUGINS="." python utils/ansible-doc-test -v roles plugins + check_docs_latest: - name: Check Ansible Documentation with latest Ansible. + name: Check Ansible Documentation with latest Ansible version. runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 @@ -29,4 +42,3 @@ jobs: run: | python -m pip install ansible ANSIBLE_LIBRARY="." ANSIBLE_DOC_FRAGMENT_PLUGINS="." python utils/ansible-doc-test -v roles plugins - -- GitLab