@@ -124,59 +124,6 @@ jobs:
124124 HCLOUD_TOKEN : ${{ secrets.HCLOUD_TOKEN }}
125125 ansible_python_interpreter : " /usr/bin/python3"
126126
127- upgrade-prep :
128- strategy :
129- matrix :
130- tests : [{ role: "upgrade-prep", test: "default" }]
131- fail-fast : false
132- concurrency : molecule-test-${{ matrix.tests.role }}-${{ matrix.tests.test }}
133- runs-on : ubuntu-22.04
134- steps :
135- - uses : actions/checkout@v5
136- - name : Set up Python
137- uses : actions/setup-python@v4
138- with :
139- python-version : " 3.10"
140- - name : Install depencencies
141- run : |
142- pip install ansible==10.3.0
143- pip install molecule==24.8.0
144- pip install "molecule[docker.lint]"
145- pip install molecule-docker
146- pip install molecule-hetznercloud
147- pip install docker
148- pip install hcloud
149- ansible-galaxy collection install community.docker
150- - name : Install dependency for pipx
151- run : |
152- /opt/pipx/venvs/ansible-core/bin/python -m pip install ansible==10.3.0
153- /opt/pipx/venvs/ansible-core/bin/python -m pip install molecule==24.8.0
154- /opt/pipx/venvs/ansible-core/bin/python -m pip install "molecule[docker.lint]"
155- /opt/pipx/venvs/ansible-core/bin/python -m pip install molecule-docker
156- /opt/pipx/venvs/ansible-core/bin/python -m pip install molecule-hetznercloud
157- /opt/pipx/venvs/ansible-core/bin/python -m pip install docker
158- /opt/pipx/venvs/ansible-core/bin/python -m pip install hcloud
159- - name : Install ansible-lint
160- run : sudo apt-get install -y ansible-lint
161- - name : Molecule version
162- run : molecule --version
163- env :
164- ansible_python_interpreter : " /usr/bin/python3"
165- - name : Run tests
166- working-directory : ./controls/roles/${{ matrix.tests.role }}
167- run : molecule test -s ${{ matrix.tests.test }}
168- env :
169- HCLOUD_TOKEN : ${{ secrets.HCLOUD_TOKEN }}
170- ansible_python_interpreter : " /usr/bin/python3"
171- # destroying is necessary when previous task failed and didn't clean up properly
172- - name : Destroy previous testing VMs
173- if : ${{ failure() || cancelled() }}
174- working-directory : ./controls/roles/${{ matrix.tests.role }}
175- run : molecule destroy -s ${{ matrix.tests.test }}
176- env :
177- HCLOUD_TOKEN : ${{ secrets.HCLOUD_TOKEN }}
178- ansible_python_interpreter : " /usr/bin/python3"
179-
180127 switch-repos :
181128 strategy :
182129 matrix :
0 commit comments