-
Notifications
You must be signed in to change notification settings - Fork 0
91 lines (82 loc) · 2.25 KB
/
workflow-tests.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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
---
# yamllint disable rule:truthy
name: "Run Sanity, Unit & Integration Tests"
on:
workflow_call:
inputs:
runs-on:
description: "The OS to run the job on"
required: false
default: "ubuntu-22.04"
type: string
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
sanity-tests:
name: Sanity (Ⓐ$${{ matrix.ansible-version }}-py${{ matrix.python-version }})
strategy:
fail-fast: false
matrix:
python-version:
- "3.9"
- "3.10"
- "3.11"
ansible-version:
- stable-2.14
- stable-2.15
runs-on: "ubuntu-22.04"
steps:
- name: Perform sanity testing
uses: ansible-community/ansible-test-gh-action@release/v1
with:
ansible-core-version: ${{ matrix.ansible-version }}
target-python-version: ${{ matrix.python-version }}
testing-type: sanity
# unit-tests:
# strategy:
# fail-fast: false
# matrix:
# python-version:
# - "3.9"
# - "3.10"
# - "3.11"
# runs-on: "ubuntu-22.04"
# steps:
# - name: "Check out repository code"
# uses: "actions/checkout@v4"
# - name: "Install Invoke"
# run: "pip install toml invoke"
# - name: "Unit Tests"
# run: "invoke tests-unit"
# integration-tests:
# strategy:
# fail-fast: false
# matrix:
# python-version:
# - "3.9"
# - "3.10"
# - "3.11"
# include:
# # ansible-core 2.14
# - ansible: stable-2.14
# python: '3.9'
# - ansible: stable-2.14
# python: '3.10'
# - ansible: stable-2.14
# python: '3.11'
# # ansible-core 2.15
# - ansible: stable-2.15
# python: '3.9'
# - ansible: stable-2.15
# python: '3.10'
# - ansible: stable-2.15
# python: '3.11'
# runs-on: "ubuntu-22.04"
# steps:
# - name: "Check out repository code"
# uses: "actions/checkout@v4"
# - name: "Install Invoke"
# run: "pip install toml invoke"
# - name: "Unit Tests"
# run: "invoke integration-unit"