Skip to content

Commit

Permalink
fixing workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Laure-di committed Oct 17, 2024
1 parent 302ede9 commit 0073417
Showing 1 changed file with 14 additions and 10 deletions.
24 changes: 14 additions & 10 deletions .github/workflows/ansible-test-integration.yml
Original file line number Diff line number Diff line change
@@ -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:
Expand All @@ -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
Expand Down Expand Up @@ -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

0 comments on commit 0073417

Please sign in to comment.