From eee873b1d43814e830f7d85291f25adb2531816d Mon Sep 17 00:00:00 2001 From: Paride Legovini Date: Tue, 17 May 2022 14:53:40 +0200 Subject: [PATCH] CI: install deadsnake to test with Xenial's Python on Bionic 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] https://github.com/actions/virtual-environments/issues/3287 [2] https://launchpad.net/~deadsnakes/+archive/ubuntu/ppa --- .github/workflows/ci-base.yaml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/ci-base.yaml b/.github/workflows/ci-base.yaml index 26c665215e..3025500569 100644 --- a/.github/workflows/ci-base.yaml +++ b/.github/workflows/ci-base.yaml @@ -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} @@ -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