Skip to content
This repository was archived by the owner on Aug 21, 2022. It is now read-only.

Commit 82a4600

Browse files
committed
ci: propertly use Python3 and Ansible 2.10
1 parent d4ec458 commit 82a4600

File tree

1 file changed

+16
-6
lines changed

1 file changed

+16
-6
lines changed

.github/workflows/test.yml

+16-6
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,16 @@ jobs:
1919
runs-on: ubuntu-latest
2020
steps:
2121
- uses: actions/checkout@v2
22-
- name: Install Ansible v2.10 alpha (GH actions currently uses 2.9)
23-
run: ANSIBLE_SKIP_CONFLICT_CHECK=1 pip install --user ansible==2.10.0a9 && ansible --version
22+
- name: Remove Python 2 and old Ansible 2.9 version
23+
run: sudo apt purge python ansible -y
24+
- name: Set up Python 3
25+
uses: actions/setup-python@v2
26+
with:
27+
python-version: '3.x'
28+
- name: Install Ansible v2.10.3 (GH actions currently uses 2.9)
29+
run: pip install ansible==2.10.3
30+
- name: Print Ansible and Python version
31+
run: ansible --version && python --version
2432
- name: Get latest StackHead version
2533
run: ansible-galaxy collection install git+https://github.com/getstackhead/stackhead.git,next -f
2634
- run: ansible-playbook ./__tests__/test-tf-generation.yml
@@ -39,14 +47,16 @@ jobs:
3947
if: github.event.pull_request.draft == false
4048
steps:
4149
- uses: actions/checkout@v2
50+
- name: Remove Python 2 and old Ansible 2.9 version
51+
run: sudo apt purge python ansible -y
4252
- name: Set up Python 3
4353
uses: actions/setup-python@v2
4454
with:
4555
python-version: '3.x'
46-
- name: Uninstall old Ansible
47-
run: ansible --version && sudo apt purge ansible -y
48-
- name: Install Ansible v2.10 alpha (GH actions currently uses 2.9)
49-
run: sudo python -m pip install ansible==2.10.0a9 && ansible --version
56+
- name: Install Ansible v2.10.3 (GH actions currently uses 2.9)
57+
run: pip install ansible==2.10.3
58+
- name: Print Ansible and Python version
59+
run: ansible --version && python --version
5060
- uses: webfactory/[email protected]
5161
with:
5262
ssh-private-key: "${{ secrets.SSH_PRIVATE_KEY }}"

0 commit comments

Comments
 (0)