generated from ansible-collections/collection_template
-
Notifications
You must be signed in to change notification settings - Fork 38
49 lines (46 loc) · 1.16 KB
/
unit-tests.yaml
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
name: Unit tests
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
on:
pull_request:
branches:
- main
- stable-*
jobs:
unit-tests:
runs-on: ubuntu-latest
name: Unit tests (Ⓐ${{ matrix.ansible }}+py${{ matrix.python }})
strategy:
fail-fast: false
matrix:
ansible:
- stable-2.14
- stable-2.15
- stable-2.16
- milestone
- devel
python:
- '3.9'
- '3.10'
- '3.11'
- '3.12'
exclude:
- ansible: stable-2.14
python: '3.12'
- ansible: stable-2.15
python: '3.12'
- ansible: stable-2.16
python: '3.9'
- ansible: milestone
python: '3.9'
- ansible: devel
python: '3.9'
continue-on-error: ${{ matrix.ansible == 'devel' }}
steps:
- name: Perform unit testing
uses: ansible-community/ansible-test-gh-action@release/v1
with:
ansible-core-version: ${{ matrix.ansible }}
testing-type: units
target-python-version: ${{ matrix.python }}