Skip to content

Commit

Permalink
Use GHA for python (#6444)
Browse files Browse the repository at this point in the history
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 <tonyg@redhat.com>
  • Loading branch information
tonyskapunk committed May 23, 2023
1 parent f7d90c4 commit 0df210f
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/test-ansible.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,12 @@ jobs:
with:
fetch-depth: 0
- run: sudo rm -rf /usr/local/bin/kustomize
- run: |
- uses: actions/setup-python@v4
with:
python-version: '3.8'
- name: Run test e2e ansible molecule
run: |
env
export PATH=/opt/python/3.8.12/bin:${PATH}
sudo apt-get install python3 python3-pip
sudo pip3 install --upgrade setuptools pip
sudo pip3 install ansible~=2.9.13
pip3 install --user --upgrade setuptools pip
pip3 install --user ansible~=2.9.13
make test-e2e-ansible-molecule

0 comments on commit 0df210f

Please sign in to comment.