diff options
Diffstat (limited to 'ansible_collections/cisco/dnac/.github')
3 files changed, 50 insertions, 10 deletions
diff --git a/ansible_collections/cisco/dnac/.github/workflows/docs.yml b/ansible_collections/cisco/dnac/.github/workflows/docs.yml index 1f69ba0d6..46ab0dbc2 100644 --- a/ansible_collections/cisco/dnac/.github/workflows/docs.yml +++ b/ansible_collections/cisco/dnac/.github/workflows/docs.yml @@ -6,21 +6,21 @@ on: - v[0-9]+.[0-9]+.[0-9]+ branches: - main - + workflow_dispatch: jobs: docs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: configure git run: | git config user.name "${GITHUB_ACTOR}" git config user.email "${GITHUB_ACTOR}@bots.github.com" git fetch --no-tags --prune --depth=1 origin +refs/heads/*:refs/remotes/origin/* - name: Set up Python - uses: actions/setup-python@v2 + uses: actions/setup-python@v5 with: - python-version: "3.7" + python-version: "3.11" - name: Install dependencies run: make doc-setup - name: Build docs diff --git a/ansible_collections/cisco/dnac/.github/workflows/sanity_tests.yml b/ansible_collections/cisco/dnac/.github/workflows/sanity_tests.yml index 32d46d478..e974d81c7 100644 --- a/ansible_collections/cisco/dnac/.github/workflows/sanity_tests.yml +++ b/ansible_collections/cisco/dnac/.github/workflows/sanity_tests.yml @@ -5,22 +5,30 @@ on: pull_request: schedule: - cron: '0 6 * * *' + workflow_dispatch: env: NAMESPACE: cisco COLLECTION_NAME: dnac jobs: + # https://docs.ansible.com/ansible/latest/reference_appendices/release_and_maintenance.html#ansible-core-support-matrix + # 2.14 supports Python 3.9-3.11 + # 2.15 supports Python 3.9-3.11 + # 2.16 supports Python 3.10-3.12 + # https://docs.ansible.com/ansible/devel/roadmap/ROADMAP_2_17.html + # milestone is 2.17 until after 2.17 branches from devel + # devel is 2.17 until 2024-04-01 sanity: name: Sanity (Ⓐ${{ matrix.ansible }}) strategy: matrix: ansible: - - stable-2.14 - stable-2.15 - - devel - runs-on: ubuntu-20.04 + - stable-2.16 + - stable-2.17 + runs-on: ubuntu-22.04 steps: - name: Check out code - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: path: cisco-en-programmability/dnacenter-ansible - name: Create directory @@ -28,9 +36,9 @@ jobs: - name: Move repository run: mv ./cisco-en-programmability/dnacenter-ansible ./ansible_collections/${{env.NAMESPACE}}/${{env.COLLECTION_NAME}} - name: Set up Python - uses: actions/setup-python@v3 + uses: actions/setup-python@v5 with: - python-version: '3.10' + python-version: '3.11' - name: Install ansible-base (${{ matrix.ansible }}) run: pip install https://github.com/ansible/ansible/archive/${{ matrix.ansible }}.tar.gz --disable-pip-version-check - name: Run sanity tests diff --git a/ansible_collections/cisco/dnac/.github/workflows/sanity_tests_devel.yml b/ansible_collections/cisco/dnac/.github/workflows/sanity_tests_devel.yml new file mode 100644 index 000000000..98b549491 --- /dev/null +++ b/ansible_collections/cisco/dnac/.github/workflows/sanity_tests_devel.yml @@ -0,0 +1,32 @@ +name: CI Devel +on: + workflow_dispatch: +env: + NAMESPACE: cisco + COLLECTION_NAME: dnac +jobs: + sanity: + name: Sanity (Ⓐ${{ matrix.ansible }}) + strategy: + matrix: + ansible: + - devel + runs-on: ubuntu-22.04 + steps: + - name: Check out code + uses: actions/checkout@v4 + with: + path: cisco-en-programmability/dnacenter-ansible + - name: Create directory + run: mkdir -p ./ansible_collections/${{env.NAMESPACE}} + - name: Move repository + run: mv ./cisco-en-programmability/dnacenter-ansible ./ansible_collections/${{env.NAMESPACE}}/${{env.COLLECTION_NAME}} + - name: Set up Python + uses: actions/setup-python@v5 + with: + python-version: '3.11' + - name: Install ansible-base (${{ matrix.ansible }}) + run: pip install https://github.com/ansible/ansible/archive/${{ matrix.ansible }}.tar.gz --disable-pip-version-check + - name: Run sanity tests + run: ansible-test sanity --docker -v --color + working-directory: ./ansible_collections/${{env.NAMESPACE}}/${{env.COLLECTION_NAME}} |