Skip to content

Commit 0df210f

Browse files
authored
Use GHA for python (#6444)
The path where python 3.8 was expected does not exist, the tests were using the installed python instead. With this change the expected python version will be used for installation of packages through pip as well as the execution of ansible or molecule will use the expected python version. Signed-off-by: Tony Garcia <[email protected]>
1 parent f7d90c4 commit 0df210f

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

.github/workflows/test-ansible.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,12 @@ jobs:
4848
with:
4949
fetch-depth: 0
5050
- run: sudo rm -rf /usr/local/bin/kustomize
51-
- run: |
51+
- uses: actions/setup-python@v4
52+
with:
53+
python-version: '3.8'
54+
- name: Run test e2e ansible molecule
55+
run: |
5256
env
53-
export PATH=/opt/python/3.8.12/bin:${PATH}
54-
sudo apt-get install python3 python3-pip
55-
sudo pip3 install --upgrade setuptools pip
56-
sudo pip3 install ansible~=2.9.13
57+
pip3 install --user --upgrade setuptools pip
58+
pip3 install --user ansible~=2.9.13
5759
make test-e2e-ansible-molecule

0 commit comments

Comments
 (0)