diff --git a/.github/workflows/ansible-test-integration.yml b/.github/workflows/ansible-test-integration.yml index 53d4651..6a3153f 100644 --- a/.github/workflows/ansible-test-integration.yml +++ b/.github/workflows/ansible-test-integration.yml @@ -1,13 +1,13 @@ -name: integration +name: Integration on: pull_request: push: branches: - main + workflow_dispatch: # Allow manual triggering of the workflow # schedule: - # - cron: "0 6 * * *" - workflow_dispatch: + # - cron: "0 6 * * *" # Uncomment for scheduled runs jobs: integration: @@ -18,6 +18,7 @@ jobs: max-parallel: 1 matrix: module: + # Uncomment the modules you want to test # - scaleway_account_project # - scaleway_applesilicon_server # - scaleway_baremetal_server @@ -79,14 +80,17 @@ jobs: # - scaleway_vpcgw_pat_rule steps: + - name: Checkout repository + - uses: actions/checkout@v2 # Ensure the repository is checked out + - name: Perform testing uses: ansible-community/ansible-test-gh-action@release/v1 with: - target-python-version: 3.9 - controller-python-version: auto - target: ${{ matrix.module }} - testing-type: integration + target-python-version: 3.9 # Specify the target Python version for testing + controller-python-version: auto # Use the default controller version + target: ${{ matrix.module }} # Use the current module from the matrix + testing-type: integration # Specify the type of testing env: - SCW_ACCESS_KEY: ${{ secrets.SCW_ACCESS_KEY }} - SCW_SECRET_KEY: ${{ secrets.SCW_SECRET_KEY }} - SCW_DEFAULT_PROJECT_ID: ${{ secrets.SCW_DEFAULT_PROJECT_ID }} + SCW_ACCESS_KEY: ${{ secrets.SCW_ACCESS_KEY }} # Access secret from GitHub Secrets + SCW_SECRET_KEY: ${{ secrets.SCW_SECRET_KEY }} # Access secret from GitHub Secrets + SCW_DEFAULT_PROJECT_ID: ${{ secrets.SCW_DEFAULT_PROJECT_ID }} # Access secret from GitHub Secrets