Skip to content

Commit 64ff9fb

Browse files
evgeniehelms
authored andcommitted
Excplicitly call setup-python for ansible-lint
ansible/ansible-lint started defaulting to Python 3.14, while there is no (stable) ansible-core release supporting this Python version yet. Let's avoid that issue by setting up a working Python on our own and disabling the feature to setup Python in ansible/ansible-lint.
1 parent 5429aae commit 64ff9fb

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

.github/workflows/test.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,16 +22,22 @@ jobs:
2222
runs-on: ubuntu-latest
2323
steps:
2424
- uses: actions/checkout@v5
25+
- name: Set up Python
26+
uses: actions/setup-python@v6
27+
with:
28+
python-version: '3.12'
2529
- name: Run ansible-lint on src
2630
uses: ansible/ansible-lint@main
2731
with:
2832
requirements_file: requirements.yml
2933
working_directory: src
34+
setup_python: false
3035
- name: Run ansible-lint on development
3136
uses: ansible/ansible-lint@main
3237
with:
3338
requirements_file: requirements.yml
3439
working_directory: development
40+
setup_python: false
3541

3642
tests:
3743
strategy:

0 commit comments

Comments
 (0)