-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (43 loc) · 1.12 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
---
name: Run ansible-test
on:
pull_request:
push:
branches:
- main
jobs:
ansible_test:
name: ansible-test
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
ansible:
- stable-2.9
- stable-2.17
python:
- 3.8
- 3.9
- 3.11
- 3.12
exclude:
- python: 3.9
- ansible: stable-2.9
- python: 3.11
- ansible: stable-2.9
- python: 3.12
- ansible: stable-2.9
steps:
- name: Perform sanity testing with ansible-test
uses: ansible-community/ansible-test-gh-action@release/v1
with:
ansible-core-version: '${{ matrix.ansible }}'
testing-type: sanity
target-python-version: '${{ matrix.python }}'
pre-test-cmd: rm -rf docker
- name: Perform unit testing with ansible-test
uses: ansible-community/ansible-test-gh-action@release/v1
with:
ansible-core-version: '${{ matrix.ansible }}'
testing-type: units
target-python-version: '${{ matrix.python }}'