From 167edabe8d2ebf31fa99002f13593a0c04236dd1 Mon Sep 17 00:00:00 2001 From: Rich Megginson Date: Tue, 6 Apr 2021 20:13:28 -0600 Subject: [PATCH] use lsr-gh-action-py26 for python 2.6 unit tests Use the new https://github.com/linux-system-roles/lsr-gh-action-py26 for running unit tests on python 2.6. This uses an EL6 VM so more closely corresponds to the managed hosts that still use python 2.6. Signed-off-by: Rich Megginson --- .github/workflows/tox.yml | 33 +++------------------------------ 1 file changed, 3 insertions(+), 30 deletions(-) diff --git a/.github/workflows/tox.yml b/.github/workflows/tox.yml index 3b07ffb..c7add26 100644 --- a/.github/workflows/tox.yml +++ b/.github/workflows/tox.yml @@ -43,36 +43,9 @@ jobs: esac TOXENV="$toxenvs" lsr_ci_runtox python-26: - runs-on: ubuntu-16.04 - env: - PY26URL: https://storage.googleapis.com/travis-ci-language-archives/python/binaries/ubuntu/14.04/x86_64/python-2.6.tar.bz2 - PY26TARFILE: "python-2.6.tar.bz2" - PY26VENVPATH: "/home/travis/virtualenv/python2.6" - VIRTUAL_ENV_DISABLE_PROMPT: "true" + runs-on: ubuntu-latest steps: - name: checkout PR uses: actions/checkout@v2 - - name: Install python, dependencies - run: | - set -euo pipefail - curl -sSf --retry 5 -o "$PY26TARFILE" "$PY26URL" - sudo tar xjf "$PY26TARFILE" --directory / - myuid=$(id -u) - mygid=$(id -g) - sudo chown -H -R $myuid:$mygid "$PY26VENVPATH" - source "$PY26VENVPATH/bin/activate" - set -x - python --version - pip --version - sudo apt-get update - sudo apt-get install git - pip install 'tox<3' 'virtualenv==15.*' 'pluggy==0.5.*' \ - "$TOX_LSR" - lsr_ci_preinstall - pip list - - name: Run tox tests - run: | - set -euo pipefail - source "$PY26VENVPATH/bin/activate" - set -x - tox -e py26,coveralls26 + - name: Run py26 tests + uses: linux-system-roles/lsr-gh-action-py26@1.0.1