From c20f23c62e5273a6fbd75215590b2300a4cf51ba Mon Sep 17 00:00:00 2001 From: mayeut Date: Sun, 25 Jun 2023 12:11:33 +0200 Subject: [PATCH] chore: continue testing with python 2.7 `actions/setup-python` removed python 2.7 in all versions of the action. Use Ubuntu provided python 2.7 to continue testing. --- .github/workflows/build.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index a164af3e..ef83c0fc 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -176,10 +176,21 @@ jobs: steps: - uses: actions/checkout@v3 - uses: actions/setup-python@v4 + if: matrix.python != '2.7' name: Install Python ${{ matrix.python }} with: python-version: ${{ matrix.python }} + - name: Install Ubuntu Python 2.7 + if: matrix.python == '2.7' + run: | + sudo apt-get update + sudo apt-get install -y --no-install-recommends python2 python3-virtualenv + virtualenv -p python2 ${HOME}/cp27 + ${HOME}/cp27/bin/python -m pip install -U pip + ${HOME}/cp27/bin/python -m pip install -U setuptools wheel + echo "${HOME}/cp27/bin" >> $GITHUB_PATH + - name: Install dependencies run: | sudo apt-get update