generated from ansible-collections/collection_template
-
Notifications
You must be signed in to change notification settings - Fork 57
37 lines (36 loc) · 993 Bytes
/
ansible-test-unit.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
name: unit
on:
push:
branches: [main]
pull_request:
types: [opened, synchronize, reopened]
workflow_dispatch:
jobs:
units:
runs-on: ubuntu-22.04
timeout-minutes: 30
name: Units (Ⓐ${{ matrix.versions.ansible }})
strategy:
fail-fast: false
matrix:
versions:
- ansible: stable-2.14
python: "3.9"
- ansible: stable-2.15
python: "3.9"
- ansible: stable-2.16
python: "3.10"
- ansible: devel
python: "3.10"
steps:
- name: Perform testing
uses: ansible-community/ansible-test-gh-action@release/v1
with:
ansible-core-version: ${{ matrix.versions.ansible }}
origin-python-version: ${{ matrix.versions.python }}
target-python-version: ${{ matrix.versions.python }}
testing-type: units
test-deps: >-
ansible.netcommon
ansible.utils
community.general