From 30c6151a30aa4e259d746ba43bc1cb080bdbe22c Mon Sep 17 00:00:00 2001 From: Christian Clauss Date: Wed, 22 May 2024 18:01:18 +0200 Subject: [PATCH 1/2] Run GitHub Actions on legacy Python 2.7 https://github.com/ahupp/python-magic/pull/326#discussion_r1610221703 --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9c4e4c9..1082cba 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -6,7 +6,7 @@ jobs: fail-fast: false matrix: os: ['ubuntu-latest'] - python-version: ['3.8', '3.9', '3.10', '3.11', '3.12', '3.13'] + python-version: ['2.7', '3.8', '3.9', '3.10', '3.11', '3.12', '3.13'] include: - os: macos-latest python-version: '3.13' From 0b7740727a9c710712bb0b07fa1497bc5b94a9ee Mon Sep 17 00:00:00 2001 From: Christian Clauss Date: Wed, 22 May 2024 18:06:07 +0200 Subject: [PATCH 2/2] Legacy Python on legacy Ubuntu --- .github/workflows/ci.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1082cba..6f75827 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -12,6 +12,8 @@ jobs: python-version: '3.13' # - os: windows-latest # TODO: Fix the Windows test that runs in an infinite loop # python-version: '3.13' + - os: 'ubuntu-20.04' # Legacy Python is not supported on Ubuntu-2022 or 2024 + python-version: '2.7' runs-on: ${{ matrix.os }} steps: - uses: actions/checkout@v4