diff --git a/.github/workflows/pythontest.yml b/.github/workflows/pythontest.yml index f3c7e68..5588c9e 100644 --- a/.github/workflows/pythontest.yml +++ b/.github/workflows/pythontest.yml @@ -23,7 +23,7 @@ jobs: strategy: max-parallel: 5 matrix: - python-version: [2.7, 3.6, 3.7, 3.8, 3.9] + python-version: [3.6, 3.7, 3.8, 3.9] steps: - uses: actions/checkout@v2 - name: Set up Python ${{ matrix.python-version }} @@ -47,3 +47,28 @@ jobs: key: ${{ runner.os }}-tox-py${{ matrix.python-version }}-${{ hashFiles('setup.py') }} - name: Test with tox run: tox -e py${{ matrix.python-version }} + unit_test27: + name: Python unit tests (2.7) + needs: pre_job + runs-on: ubuntu-20.04 + container: + image: python:2.7.18-buster + steps: + - uses: actions/checkout@v3 + - name: Cache pip + uses: actions/cache@v2 + with: + path: ~/.cache/pip + key: ${{ runner.os }}-pip-py2.7-${{ hashFiles('setup.py') }} + - name: Install tox + run: | + python -m pip install --upgrade pip + pip install tox + - name: tox env cache + if: ${{ !startsWith(runner.os, 'windows') }} + uses: actions/cache@v2 + with: + path: ${{ github.workspace }}/.tox/py2.7 + key: ${{ runner.os }}-tox-py2.7-${{ hashFiles('setup.py') }} + - name: Test with tox + run: tox -e py2.7