From 1f737568b220d91b4c22b7a65e475dba833154c3 Mon Sep 17 00:00:00 2001 From: Alex Willmer Date: Mon, 28 Apr 2025 09:48:46 +0100 Subject: [PATCH] ci: Remove vestigial Python 2.7 support in macOS Github jobs --- .github/workflows/tests.yml | 20 +------------------- 1 file changed, 1 insertion(+), 19 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 280211c4..fb963a9b 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -218,20 +218,7 @@ jobs: exit 1 fi - if [[ $PYTHON == "python2.7" && $(uname) == "Darwin" ]]; then - # GitHub macOS 12 images: python2.7 is installed, but not on $PATH - PYTHON="/Library/Frameworks/Python.framework/Versions/2.7/bin/python2.7" - "$PYTHON" -m ensurepip --user --altinstall --no-default-pip - "$PYTHON" -m pip install --user -r "tests/requirements-tox.txt" - elif [[ $PYTHON == "python2.7" ]]; then - curl "https://bootstrap.pypa.io/pip/2.7/get-pip.py" --output "get-pip.py" - "$PYTHON" get-pip.py --user --no-python-version-warning - # Avoid Python 2.x pip masking system pip - rm -f ~/.local/bin/{easy_install,pip,wheel} - "$PYTHON" -m pip install --user -r "tests/requirements-tox.txt" - else - "$PYTHON" -m pip install -r "tests/requirements-tox.txt" - fi + "$PYTHON" -m pip install -r "tests/requirements-tox.txt" - name: Run tests env: GITHUB_ACTOR: ${{ github.actor }} @@ -247,11 +234,6 @@ jobs: exit 1 fi - if [[ $PYTHON == "python2.7" && $(uname) == "Darwin" ]]; then - # GitHub macOS 12 images: python2.7 is installed, but not on $PATH - PYTHON="/Library/Frameworks/Python.framework/Versions/2.7/bin/python2.7" - fi - "$PYTHON" -m tox -e "${{ matrix.tox_env }}" # https://github.com/marketplace/actions/alls-green