Update ansible-lint and requires_ansible versions
#225
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: Test collection | |
| concurrency: | |
| group: ${{ github.head_ref }} | |
| cancel-in-progress: true | |
| on: # yamllint disable-line rule:truthy | |
| pull_request: | |
| branches: [main, cloud_content] | |
| workflow_dispatch: | |
| jobs: | |
| ansible-lint: | |
| uses: ansible-network/github_actions/.github/workflows/ansible-lint.yml@main | |
| changelog: | |
| uses: ansible-network/github_actions/.github/workflows/changelog.yml@main | |
| cloud_unit: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| python-version: ["3.9"] | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - uses: actions/setup-python@v4 | |
| with: | |
| python-version: "${{ matrix.python-version }}" | |
| - run: | | |
| python -m pip install --upgrade pip | |
| python -m pip install tox | |
| python -m tox -epy3 -- tests/cloud/ | |
| all_green: | |
| if: ${{ always() }} | |
| needs: | |
| - ansible-lint | |
| - changelog | |
| - cloud_unit | |
| runs-on: ubuntu-latest | |
| steps: | |
| - run: >- | |
| python -c "assert set([ | |
| '${{ needs.ansible-lint.result }}', | |
| '${{ needs.changelog.result }}', | |
| '${{ needs.cloud_unit.result }}', | |
| ]) == {'success'}" |