File tree Expand file tree Collapse file tree 1 file changed +1
-18
lines changed
Expand file tree Collapse file tree 1 file changed +1
-18
lines changed Original file line number Diff line number Diff line change 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"
You can’t perform that action at this time.
0 commit comments