-
Notifications
You must be signed in to change notification settings - Fork 2
40 lines (35 loc) · 1.12 KB
/
sanity-test.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
name: sanity
on:
push:
branches:
- main
pull_request:
env:
NAMESPACE: community
COLLECTION_NAME: upcloud
jobs:
sanity:
name: Sanity test (${{ matrix.version.ansible }})
strategy:
matrix:
version:
- { ansible: stable-2.13, python: "3.10" }
- { ansible: stable-2.14, python: "3.11" }
- { ansible: stable-2.15, python: "3.11" }
- { ansible: devel, python: "3.11" }
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v1
with:
path: ansible_collections/${{env.NAMESPACE}}/${{env.COLLECTION_NAME}}
- name: Set up Python
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.version.python }}
- name: Install ansible-base (${{ matrix.version.ansible }})
run: pip install https://github.com/ansible/ansible/archive/${{ matrix.version.ansible }}.tar.gz --disable-pip-version-check
- name: Run sanity tests
run: ansible-test sanity --docker -v --color
- name: Test building a release
run: ansible-galaxy collection build