Skip to content

Commit 702b6f7

Browse files
committed
ci(ansible-lint): fix ansible-lint not working because of invalid python version
The latest version of ansible-nas uses Python 3.14, which requires at least ansible-core version 2.20, which isn't out yet. To avoid constantly failing tests, we manually install Python 3.12 This commit should be reverted once: - ansible-core 2.20 comes out - This PR gets merged, allowing us to specify the python version: ansible/ansible-lint#4829 ansible/ansible-lint#4830
1 parent e459577 commit 702b6f7

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

.github/workflows/ansible-lint.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,12 @@ jobs:
99
name: Ansible Lint # Naming the build is important to use it as a status check
1010
runs-on: ubuntu-24.04
1111
steps:
12-
- uses: actions/checkout@v4
12+
- uses: actions/checkout@v5
13+
- name: Set up Python
14+
uses: actions/setup-python@v6
15+
with:
16+
python-version: '3.12'
1317
- name: Run ansible-lint
14-
uses: ansible/ansible-lint@main
18+
uses: ansible/ansible-lint@main
19+
with:
20+
setup_python: "false"

0 commit comments

Comments
 (0)