Skip to content

Commit 1492bf7

Browse files
committed
Run ansible-lint with only Python setup enabled
Signed-off-by: Webster Mudge <wmudge@cloudera.com>
1 parent 4bbc48f commit 1492bf7

File tree

1 file changed

+1
-18
lines changed

1 file changed

+1
-18
lines changed

.github/workflows/ansible-lint.yml

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -24,26 +24,9 @@ jobs:
2424
runs-on: ubuntu-24.04
2525
steps:
2626
- uses: actions/checkout@v4
27-
- name: Setup Python and caching
28-
uses: actions/setup-python@v4
29-
with:
30-
python-version: "3.12"
31-
cache: "pip"
32-
- name: Set up Ansible and Ansible collections and roles
33-
run: |
34-
sudo update-alternatives --install /usr/bin/python python $(which python3) 1
35-
pip install --upgrade pip
36-
pip install ansible-core~=2.18.0 ansible-builder bindep pycodestyle voluptuous pylint pyyaml
37-
ansible-galaxy collection install -r builder/requirements.yml -p ./ansible/collections
38-
ansible-galaxy role install -r builder/requirements.yml -p ./ansible/roles
39-
- name: Set up Ansible collection dependencies
40-
run: |
41-
ansible-builder introspect --write-pip final_python.txt --write-bindep final_bindep.txt ./ansible/collections
42-
[[ -f final_python.txt ]] && pip install -r final_python.txt || echo "No Python dependencies found."
43-
[[ -f final_bindep.txt ]] && bindep --file final_bindep.txt || echo "No system dependencies found."
4427
- name: Run ansible-lint
4528
uses: ansible/ansible-lint@main
4629
with:
4730
# args: "--no-offline"
48-
setup_python: false
31+
setup_python: true
4932
# requirements_file: "requirements.yml"

0 commit comments

Comments
 (0)