diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 89d8835..4705661 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -10,13 +10,11 @@ jobs: tests: name: Python ${{ matrix.python }} ${{ matrix.os }} runs-on: ${{ matrix.os || 'ubuntu-latest' }} - container: ${{ matrix.container }} strategy: fail-fast: false matrix: python: ["3.8", "3.9", "3.10", "3.11", "3.12", pypy3.8, pypy3.10] include: - - {python: "2.7", container: python:2.7-stretch, tox3: true} - {python: "3.6", os: ubuntu-20.04, tox3: true} - {python: "3.7", tox3: true} - {python: pypy2.7, tox3: true} @@ -53,8 +51,27 @@ jobs: name: coverage-data path: .coverage.* + test-py27: + name: Python 2.7 + runs-on: ubuntu-latest + container: python:2.7-stretch + + steps: + - uses: actions/checkout@v3 + - run: python -m pip install --upgrade pip setuptools + - name: Install tox3 + run: pip install 'tox<4' 'virtualenv<20.22.0' + + - name: Test with tox + run: tox -e py27 + + - uses: actions/upload-artifact@v3 + with: + name: coverage-data + path: .coverage.* + coverage: - needs: tests + needs: [tests, test-py27] if: ${{ success() || failure() }} runs-on: ubuntu-latest steps: