generated from ansible-collections/collection_template
-
Notifications
You must be signed in to change notification settings - Fork 1
56 lines (51 loc) · 1.54 KB
/
ansible-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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
name: CI
on:
pull_request:
push:
# Run CI once per day (at 06:00 UTC)
# This ensures that even if there haven't been commits that we are still testing against latest version of ansible-test for each ansible-base version
schedule:
- cron: '0 6 * * *'
jobs:
sanity:
name: Sanity (${{ matrix.ansible }})
strategy:
matrix:
ansible:
- stable-2.14
- stable-2.15
- stable-2.16
- stable-2.17
- devel
python-version:
- '3.9'
- '3.10'
- '3.11'
- '3.12'
exclude:
- ansible: stable-2.14
python-version: '3.12'
- ansible: stable-2.15
python-version: '3.12'
- ansible: stable-2.16
python-version: '3.9'
- ansible: stable-2.17
python-version: '3.9'
- ansible: devel
python-version: '3.9'
- ansible: devel
python-version: '3.10'
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v1
with:
path: ansible_collections/kaytus/ksmanage
- name: Set up Python (${{ matrix.python-version }})
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python-version }}
- name: Install ansible-base (${{ matrix.ansible }})
run: pip install https://github.com/ansible/ansible/archive/${{ matrix.ansible }}.tar.gz --disable-pip-version-check
- name: Run sanity tests
run: ansible-test sanity --docker -v --color