Remove CI for python2 tests for MacOS.

macos-11 image is deprecated and will be removed next month,
macos-12 image doesn't have python2,
and actions/setup-python has removed python2 as well.

No longer running tests on MacOS on Python2.
This commit is contained in:
Florian Bach 2024-05-12 11:29:05 +02:00
parent 7f89a9c6d1
commit 27bd9531c4

View File

@ -167,18 +167,3 @@ jobs:
- name: Run tests (Python 3) - name: Run tests (Python 3)
run: | run: |
cd tests && python3 ./main.py && cd .. cd tests && python3 ./main.py && cd ..
- name: Set up Python 2
uses: actions/setup-python@v5
with:
python-version: "2.7"
- name: Install dependencies
run: |
curl https://bootstrap.pypa.io/pip/2.7/get-pip.py --output get-pip.py
python2 get-pip.py
python2 -m pip --no-python-version-warning install -r ./.github/workflows/ci_test_requirements.txt
- name: Run tests (Python 2)
run: |
cd tests && PYTHONWARNINGS=ignore python2 ./main.py && cd ..