-
Notifications
You must be signed in to change notification settings - Fork 1
65 lines (54 loc) · 1.67 KB
/
pr.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
63
64
65
---
name: Pull Request Test
on:
workflow_dispatch:
pull_request:
push:
jobs:
integration_testing:
name: Build and Install Collection
runs-on: ubuntu-latest
strategy:
matrix:
openstack_version: ["master"]
# python: [ pypy3.8 ]
python: [ 3.11 ]
roles: [openstack_vm]
steps:
- name: Checkout project
uses: actions/checkout@v3
- name: Deploy devstack
uses: EmilienM/[email protected]
with:
branch: ${{ matrix.openstack_version }}
enabled_services: 'ir-api,s-account,s-container,s-object,s-proxy,swift'
cache: devstack
- name: Install Python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python }}
cache: pip
- name: Install python requirements
run: |
pip install -r requirements.txt
pip install -r molecule/requirements.txt
- name: Print configuration versions
run: |
pip freeze
ansible-galaxy collection list
- name: Build Ansible Collection
run: |
pwd
ansible-galaxy collection build . --output build/ --force
- name: Install Ansible Collection
run: |
ansible-galaxy collection install build/snowdrop-cloud_infra-$(yq -r .version galaxy.yml).tar.gz --upgrade -p $HOME/.ansible/collections
- name: Print configuration versions
run: |
pip freeze
ansible-galaxy collection list
- name: Run role tests
run: |
molecule test --scenario-name github
#working-directory: roles/${{ matrix.roles }}
...