Skip to content

Commit fee6175

Browse files
authored
Remove ansible 2.15 from workflow and add python 3.12 (#189)
1 parent cd646cb commit fee6175

File tree

1 file changed

+8
-46
lines changed

1 file changed

+8
-46
lines changed

.github/workflows/ansible-test.yml

Lines changed: 8 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
name: CI
22

33
on:
4+
workflow_dispatch:
45
push:
56
branches: [main]
67
pull_request:
@@ -19,10 +20,10 @@ jobs:
1920
- name: Check out code
2021
uses: actions/checkout@v3
2122

22-
- name: Set up Python 3.11
23+
- name: Set up Python
2324
uses: actions/setup-python@v4
2425
with:
25-
python-version: 3.11
26+
python-version: 3.12
2627

2728
- name: Install ansible (${{ matrix.ansible-version }})
2829
run: pip install https://github.com/ansible/ansible/archive/${{ matrix.ansible-version }}.tar.gz --disable-pip-version-check
@@ -31,7 +32,7 @@ jobs:
3132
run: ansible-galaxy collection build --output-path "${GITHUB_WORKSPACE}/.cache/collection-tarballs"
3233

3334
- name: Store migrated collection artifacts
34-
uses: actions/upload-artifact@v4.4.0
35+
uses: actions/upload-artifact@v4
3536
with:
3637
name: collection
3738
path: .cache/collection-tarballs
@@ -48,9 +49,8 @@ jobs:
4849
strategy:
4950
fail-fast: false
5051
matrix:
51-
python: ['3.10', '3.11']
52+
python: ['3.10', '3.11', '3.12']
5253
ansible:
53-
- stable-2.15
5454
- stable-2.16
5555
- stable-2.17
5656
- stable-2.18
@@ -85,9 +85,8 @@ jobs:
8585
strategy:
8686
fail-fast: false
8787
matrix:
88-
python: ['3.10', '3.11']
88+
python: ['3.10', '3.11', '3.12']
8989
ansible:
90-
- stable-2.15
9190
- stable-2.16
9291
- stable-2.17
9392
- stable-2.18
@@ -108,43 +107,6 @@ jobs:
108107
pull-request-change-detection: true
109108
coverage: never
110109

111-
lint:
112-
name: Ansible lint
113-
runs-on: ubuntu-latest
110+
ansible-lint:
114111
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-
uses: actions/[email protected]
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

Comments
 (0)