From 68028872315d0717989a7a1bfd3d01eda5024460 Mon Sep 17 00:00:00 2001 From: Simon Cross Date: Sun, 12 Nov 2023 23:46:41 +0100 Subject: [PATCH] Attempt to use older Ubuntu to run tests against Python 2.7. --- .github/workflows/tests.yml | 30 ++++++++++-------------------- 1 file changed, 10 insertions(+), 20 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 6df139b..e37a2a2 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -8,34 +8,24 @@ jobs: strategy: fail-fast: false matrix: - python-version: - - deadsnakes: true - version: "2.7" - - deadsnakes: true - version: "3.6" - - "3.7" - - "3.8" - - "3.9" - - "3.10" - - "3.11" - # - "pypy2.7" - # - "pypy3.9" - + os: ["ubuntu-latest"] + python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"] + include: + - os: "ubuntu-20.04" + python-version: "2.7" + - os: "ubuntu-20.04" + python-version: "pypy2.7" + - os: "ubuntu-20.04" + python-version: "pypy3.10"] + runs-on: ${{ matrix.os }} steps: - uses: actions/checkout@v2 - name: Set up Python ${{ matrix.python-version }} uses: actions/setup-python@v2 - if: "!matrix.python-version.deadsnakes" with: python-version: ${{ matrix.python-version }} - - name: Set up Deadsnakes Python ${{ matrix.python-version.version }} - uses: deadsnakes/action@v3.0.1 - if: "matrix.python-version.deadsnakes" - with: - python-version: ${{ matrix.python-version.version }} - - name: Run test suite run: | python setup.py test