-
-
Notifications
You must be signed in to change notification settings - Fork 31
62 lines (56 loc) · 1.73 KB
/
integration-changed.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
name: Collection integration of changed
on:
pull_request:
paths:
- "plugins/**"
- "tests/integration/**"
jobs:
integration-test:
name: Integration of changes v${{ matrix.container-version }} Ansible-${{ matrix.ansible-branch }} Py${{ matrix.python-version }}
defaults:
run:
working-directory: ansible_collections/ngine_io/cloudstack
runs-on: ubuntu-latest
strategy:
max-parallel: 1
fail-fast: false
matrix:
python-version:
- "3.11"
ansible-branch:
- stable-2.17
group:
- 3
container-version:
- 1.7.0
steps:
- name: Check out code
uses: actions/checkout@v4
with:
path: ansible_collections/ngine_io/cloudstack
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install ansible and collection dependencies
run: |
python -m pip install --upgrade pip
pip install https://github.com/ansible/ansible/archive/${{ matrix.ansible-branch }}.tar.gz
pip install -r requirements.txt
- name: Build and install collection
run: |
ansible-galaxy collection build .
ansible-galaxy collection install *.gz
- name: Run the tests
run: >-
ansible-test
integration
--docker
-v
--continue-on-error
--diff
--color
--python ${{ matrix.python-version }}
cs/group${{ matrix.group }}/
env:
ANSIBLE_CLOUDSTACK_CONTAINER: quay.io/ansible/cloudstack-test-container:${{ matrix.container-version }}