1
1
name : CI
2
2
3
3
on :
4
+ workflow_dispatch :
4
5
push :
5
6
branches : [main]
6
7
pull_request :
@@ -19,10 +20,10 @@ jobs:
19
20
- name : Check out code
20
21
uses : actions/checkout@v3
21
22
22
- - name : Set up Python 3.11
23
+ - name : Set up Python
23
24
uses : actions/setup-python@v4
24
25
with :
25
- python-version : 3.11
26
+ python-version : 3.12
26
27
27
28
- name : Install ansible (${{ matrix.ansible-version }})
28
29
run : pip install https://github.com/ansible/ansible/archive/${{ matrix.ansible-version }}.tar.gz --disable-pip-version-check
31
32
run : ansible-galaxy collection build --output-path "${GITHUB_WORKSPACE}/.cache/collection-tarballs"
32
33
33
34
- name : Store migrated collection artifacts
34
- uses : actions/upload-artifact@v4.4.0
35
+ uses : actions/upload-artifact@v4
35
36
with :
36
37
name : collection
37
38
path : .cache/collection-tarballs
48
49
strategy :
49
50
fail-fast : false
50
51
matrix :
51
- python : ['3.10', '3.11']
52
+ python : ['3.10', '3.11', '3.12' ]
52
53
ansible :
53
- - stable-2.15
54
54
- stable-2.16
55
55
- stable-2.17
56
56
- stable-2.18
85
85
strategy :
86
86
fail-fast : false
87
87
matrix :
88
- python : ['3.10', '3.11']
88
+ python : ['3.10', '3.11', '3.12' ]
89
89
ansible :
90
- - stable-2.15
91
90
- stable-2.16
92
91
- stable-2.17
93
92
- stable-2.18
@@ -108,43 +107,6 @@ jobs:
108
107
pull-request-change-detection : true
109
108
coverage : never
110
109
111
- lint :
112
- name : Ansible lint
113
- runs-on : ubuntu-latest
110
+ ansible-lint :
114
111
needs : [build]
115
- strategy :
116
- fail-fast : false
117
- matrix :
118
- python-version : ["3.11"]
119
- ansible-version : [stable-2.18, devel]
120
-
121
- steps :
122
- # Important: This sets up your GITHUB_WORKSPACE environment variable
123
- - name : Checkout the source code
124
- uses : actions/checkout@v3
125
- with :
126
- fetch-depth : 0 # needed for progressive mode to work
127
-
128
- - name : Set up Python ${{ matrix.python-version }}
129
- uses : actions/setup-python@v1
130
- with :
131
- python-version : ${{ matrix.python-version }}
132
-
133
- - name : Install ansible (${{ matrix.ansible-version }}) version
134
- run : pip install https://github.com/ansible/ansible/archive/${{ matrix.ansible-version }}.tar.gz --disable-pip-version-check
135
-
136
- - name : Install ansible lint
137
- run : pip install ansible-lint --disable-pip-version-check
138
-
139
- - name : Download migrated collection artifacts
140
-
141
- with :
142
- name : collection
143
- path : .cache/collection-tarballs
144
-
145
- - name : Install collection build
146
- run : ansible-galaxy collection install .cache/collection-tarballs/*.tar.gz
147
-
148
- - name : Run Ansible lint
149
- run : ansible-lint --show-relpath
150
- working-directory : /home/runner/work/ansible-powerscale/ansible-powerscale
112
+ uses : ansible/ansible-content-actions/.github/workflows/ansible_lint.yaml@main
0 commit comments