Skip to content

Commit

Permalink
CI: install deadsnake to test with Xenial's Python on Bionic
Browse files Browse the repository at this point in the history
Xenial is not supported anymore on GitHub actions [1]. Let's test on
Bionic using Xenial's version of Python installed from the deadsnakes
ppa [2].

[1] actions/runner-images#3287
[2] https://launchpad.net/~deadsnakes/+archive/ubuntu/ppa
  • Loading branch information
paride authored and lucasmoura committed Jul 1, 2022
1 parent f92f13b commit 72bc88d
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/ci-base.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ jobs:
strategy:
matrix:
testenv:
- {os: ubuntu-18.04, pyver: py35, deadsnake: python3.5}
- {os: ubuntu-18.04, pyver: py36}
- {os: ubuntu-20.04, pyver: py38}
- {os: ubuntu-22.04, pyver: py310}
Expand All @@ -39,6 +40,12 @@ jobs:
run: |
sudo DEBIAN_FRONTEND=noninteractive apt-get -qy update
sudo DEBIAN_FRONTEND=noninteractive apt-get -qy install tox
# Install deadsnake if one is specified
if [ "${{ matrix.testenv.deadsnake }}" ]; then
sudo add-apt-repository --yes ppa:deadsnakes/ppa
sudo DEBIAN_FRONTEND=noninteractive apt-get -qy install "${{ matrix.testenv.deadsnake }}"
fi
- name: Git checkout
uses: actions/checkout@v2
- name: Run unit tests
Expand Down

0 comments on commit 72bc88d

Please sign in to comment.