Skip to content

Commit 08e6b27

Browse files
committed
WF
1 parent b5629c7 commit 08e6b27

File tree

3 files changed

+38
-46
lines changed

3 files changed

+38
-46
lines changed

.github/workflows/ansible-test-integration.yml

Lines changed: 20 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,26 @@ jobs:
2727
ansible-collections-path: "./ansible_collections/scaleway/scaleway"
2828

2929
steps:
30-
- name: Setup Ansible environment
31-
uses: ./.github/workflows/ansible-tests.yml
30+
- name: Create directory
31+
run: |
32+
mkdir -p ${{ env.ansible-collections-path }}
33+
34+
- name: Checkout the repo
35+
uses: actions/checkout@v4
36+
with:
37+
path: ${{ env.ansible-collections-path }}
38+
39+
- name: Setup Python and install ansible
40+
uses: actions/setup-python@v5
3241
with:
33-
ansible-version: ${{ matrix.ansible-version }}
34-
ansible-collection-path: ${{ env.ansible-collections-path }}
42+
python-version: 3.11
43+
44+
- name: Install ansible
45+
run: |
46+
python -m pip install \
47+
https://github.com/ansible/ansible/archive/${{ matrix.ansible-version }}.tar.gz \
48+
--disable-pip-version-check
49+
3550
- name: Create scw config
3651
run: |
3752
mkdir -p $HOME/.config/scw
@@ -41,6 +56,7 @@ jobs:
4156
default_region: ${{ secrets.SCW_DEFAULT_REGION }}
4257
default_project_id: ${{ secrets.SCW_DEFAULT_PROJECT_ID }}
4358
EOF
59+
4460
- name: Run integration tests with ansible ${{ matrix.ansible-version }}
4561
working-directory: ${{ env.ansible-collections-path }}
4662
run: |

.github/workflows/ansible-test-units.yml

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,25 @@ jobs:
2626

2727
runs-on: ubuntu-latest
2828
steps:
29-
- name: Setup Ansible environment
30-
uses: ./.github/workflows/ansible-tests.yml
29+
- name: Create directory
30+
run: |
31+
mkdir -p ${{ env.ansible-collections-path }}
32+
33+
- name: Checkout the repo
34+
uses: actions/checkout@v4
35+
with:
36+
path: ${{ env.ansible-collections-path }}
37+
38+
- name: Setup Python and install ansible
39+
uses: actions/setup-python@v5
3140
with:
32-
ansible-version: ${{ matrix.ansible-version }}
33-
ansible-collection-path: ${{ env.ansible-collections-path }}
41+
python-version: 3.11
42+
43+
- name: Install ansible
44+
run: |
45+
python -m pip install \
46+
https://github.com/ansible/ansible/archive/${{ matrix.ansible-version }}.tar.gz \
47+
--disable-pip-version-check
3448
3549
- name: Run integration tests with ansible ${{ matrix.ansible-version }}
3650
working-directory: ${{ env.ansible-collections-path }}

.github/workflows/ansible-tests.yml

Lines changed: 0 additions & 38 deletions
This file was deleted.

0 commit comments

Comments
 (0)