Skip to content

Commit e1245ca

Browse files
authored
CI fix: Use python3 with ansible (#94)
* Use python3 with ansible * Switch to distro that uses python3 be default This should heopfully prevent us from accidently using python2. * Install ansible The system installed ansible can be using python2 in some cases. As python2 is end of life, it is a bit of a lottery when a pip package drops support for python2.
1 parent 968ab8b commit e1245ca

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

.github/workflows/ci.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ jobs:
1010

1111
test:
1212
name: Molecule
13-
runs-on: ubuntu-latest
13+
# Select an image that uses python3 by default
14+
runs-on: ubuntu-20.04
1415
strategy:
1516
fail-fast: false
1617
matrix:
@@ -57,7 +58,7 @@ jobs:
5758
python-version: '3.x'
5859

5960
- name: Install test dependencies.
60-
run: pip3 install molecule[docker] docker yamllint ansible-lint
61+
run: pip3 install -U ansible molecule[docker] docker yamllint ansible-lint
6162

6263
- name: Display ansible version
6364
run: ansible --version
@@ -77,7 +78,7 @@ jobs:
7778

7879
runonce:
7980
name: Checks
80-
runs-on: ubuntu-latest
81+
runs-on: ubuntu-20.04
8182
steps:
8283
- name: Check out the codebase.
8384
uses: actions/checkout@v2
@@ -88,7 +89,7 @@ jobs:
8889
python-version: '3.x'
8990

9091
- name: Install test dependencies.
91-
run: pip3 install molecule[docker] docker yamllint ansible-lint
92+
run: pip3 install -U ansible molecule[docker] docker yamllint ansible-lint
9293

9394
- name: Display ansible version
9495
run: ansible --version

0 commit comments

Comments
 (0)