workflow: Update ansible-test CI action and fix detected issues #1014
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: CI | |
| on: | |
| # Run CI against all pushes (direct commits, also merged PRs), Pull Requests | |
| push: | |
| branches: | |
| - main | |
| - dev | |
| pull_request: | |
| # Run CI once per day (at 06:00 UTC) | |
| # This ensures that even if there haven't been commits that we are still testing against latest version of ansible-test for each ansible-base version | |
| schedule: | |
| - cron: '0 6 * * *' | |
| workflow_dispatch: | |
| env: | |
| NAMESPACE: community | |
| COLLECTION_NAME: sap_libs | |
| jobs: | |
| sanity: | |
| runs-on: ubuntu-latest | |
| name: Sanity (Ⓐ${{ matrix.ansible }}) | |
| strategy: | |
| fail-fast: false # Disabled so we can see all failed combinations. | |
| matrix: | |
| ansible: | |
| - 'stable-2.16' | |
| - 'stable-2.17' | |
| - 'stable-2.18' | |
| - 'stable-2.19' | |
| - 'devel' # Currently 2.20 | |
| steps: | |
| - name: Check out code | |
| uses: actions/checkout@v4 | |
| - name: Perform sanity testing | |
| uses: ansible-community/ansible-test-gh-action@release/v1 | |
| with: | |
| ansible-core-version: ${{ matrix.ansible }} | |
| testing-type: sanity | |
| units: | |
| runs-on: ubuntu-latest | |
| name: Units (Ⓐ${{ matrix.ansible }}+py${{ matrix.python }}) | |
| strategy: | |
| fail-fast: false # Disabled so we can see all failed combinations. | |
| matrix: | |
| ansible: | |
| - 'stable-2.16' | |
| - 'stable-2.17' | |
| - 'stable-2.18' | |
| - 'stable-2.19' | |
| - 'devel' # Currently 2.20 | |
| python: | |
| - '3.9' | |
| - '3.10' | |
| - '3.11' | |
| - '3.12' | |
| - '3.13' | |
| exclude: | |
| # Exclude new python versions for older ansible versions | |
| - ansible: 'stable-2.16' | |
| python: '3.13' | |
| - ansible: 'stable-2.17' | |
| python: '3.13' | |
| steps: | |
| - name: Check out code | |
| uses: actions/checkout@v4 | |
| - name: Perform unit testing | |
| uses: ansible-community/ansible-test-gh-action@release/v1 | |
| with: | |
| ansible-core-version: ${{ matrix.ansible }} | |
| target-python-version: ${{ matrix.python }} | |
| testing-type: units | |
| # Please consult the Readme for information on why we disabled integration tests temporarily. |