-
-
Notifications
You must be signed in to change notification settings - Fork 8
/
config.yml
60 lines (55 loc) · 1.76 KB
/
config.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
version: 2.1
orbs:
collection-testing: maxhoesel-ansible/[email protected]
filters: &semver-tagged
tags:
# Official Semver Regex. Yes, it's LOOOONG
only: /^v(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$/
branches:
ignore: /.*/
executors:
pytest:
machine:
# python 3.11, needed for ansible-test 2.15
image: ubuntu-2204:2023.10.1
resource_class: large
jobs:
test:
parameters:
parallelism:
description: Number of parallel runners
type: integer
ansible-version:
description: Version of Ansible to use for testing
type: string
node-python-version:
description: Version of python to use for module tests
type: string
executor: pytest
parallelism: << parameters.parallelism >>
steps:
- collection-testing/pytest:
pytest-args: >
--ci
--ansible-version << parameters.ansible-version >>
--node-python-version << parameters.node-python-version >>
workflows:
ci:
jobs:
- test:
name: Test (ansible-<< matrix.ansible-version >>)
parallelism: 3
matrix:
parameters:
ansible-version: ["2.16", "2.17"]
node-python-version: ["3.7"]
- collection-testing/pre-commit-lint:
name: Lint
- collection-testing/publish-github:
name: Publish Release to GitHub
context: collection-publishing
filters: *semver-tagged
- collection-testing/publish-galaxy:
name: Publish to Galaxy
context: collection-publishing
filters: *semver-tagged