Define python_requires
for ansible-test
(#349)
#1343
This file contains 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: Integration tests | |
on: | |
push: | |
branches: [main] | |
workflow_dispatch: | |
concurrency: | |
group: ${{ github.workflow }} | |
cancel-in-progress: false | |
env: | |
# NOTE: Yes, the origination is not from a PR :smile: but we do have | |
# integration tests on PR and we want the cloud resources uniquely named | |
PR_NUMBER: 0 | |
jobs: | |
integration: | |
runs-on: ubuntu-22.04 | |
environment: main | |
timeout-minutes: 60 | |
name: Integration (Ⓐ${{ matrix.versions.ansible }} on ${{ matrix.versions.python }} / ${{ matrix.module }}) | |
strategy: | |
fail-fast: false | |
max-parallel: 1 | |
matrix: | |
# https://docs.ansible.com/ansible/latest/reference_appendices/release_and_maintenance.html | |
versions: | |
- ansible: stable-2.14 | |
python: "3.9" | |
module: | |
- digital_ocean_account_info | |
- digital_ocean_balance_info | |
- digital_ocean_block_storage | |
- digital_ocean_cdn_endpoints | |
- digital_ocean_cdn_endpoints_info | |
- digital_ocean_certificate | |
- digital_ocean_certificate_info | |
- digital_ocean_database | |
- digital_ocean_database_info | |
- digital_ocean_domain | |
- digital_ocean_domain_info | |
# - digital_ocean_domain_record # No test | |
- digital_ocean_domain_record_info | |
- digital_ocean_droplet | |
- digital_ocean_droplet_info | |
- digital_ocean_firewall | |
- digital_ocean_firewall_info | |
- digital_ocean_floating_ip | |
- digital_ocean_floating_ip_info | |
- digital_ocean_image_info | |
- digital_ocean_kubernetes | |
- digital_ocean_kubernetes_info | |
- digital_ocean_load_balancer | |
- digital_ocean_load_balancer_info | |
- digital_ocean_monitoring_alerts | |
# - digital_ocean_monitoring_alerts_info # No test | |
- digital_ocean_project | |
- digital_ocean_project_info | |
- digital_ocean_project_resource_info | |
- digital_ocean_region_info | |
- digital_ocean_size_info | |
- digital_ocean_snapshot | |
- digital_ocean_snapshot_info | |
- digital_ocean_spaces | |
- digital_ocean_spaces_info | |
- digital_ocean_sshkey | |
- digital_ocean_sshkey_info | |
- digital_ocean_tag | |
- digital_ocean_tag_info | |
- digital_ocean_volume_info | |
- digital_ocean_vpc | |
- digital_ocean_vpc_info | |
steps: | |
- name: Perform testing | |
uses: ansible-community/ansible-test-gh-action@release/v1 | |
with: | |
pre-test-cmd: >- | |
DO_API_KEY=${{ secrets.DO_API_KEY }} | |
AWS_ACCESS_KEY_ID=${{ secrets.AWS_ACCESS_KEY_ID }} | |
AWS_SECRET_ACCESS_KEY=${{ secrets.AWS_SECRET_ACCESS_KEY }} | |
./tests/utils/render.sh | |
tests/integration/integration_config.yml.template | |
> tests/integration/integration_config.yml | |
ansible-core-version: ${{ matrix.versions.ansible }} | |
origin-python-version: ${{ matrix.versions.python }} | |
target: ${{ matrix.module }} | |
target-python-version: ${{ matrix.versions.python }} | |
testing-type: integration | |
test-deps: >- | |
ansible.netcommon | |
ansible.utils | |
community.general |