Skip to content

Commit

Permalink
CI: use system Python 2.7.
Browse files Browse the repository at this point in the history
  • Loading branch information
jwilk committed Aug 10, 2023
1 parent 3a3bc98 commit b83c2ef
Showing 1 changed file with 12 additions and 8 deletions.
20 changes: 12 additions & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ jobs:
- python: '2.7'
cython: cython==0.28
- python: '2.7'
os: ubuntu-20.04
- python: '3.5'
os: ubuntu-20.04
cython: cython==0.28
Expand All @@ -27,11 +28,7 @@ jobs:
os: ubuntu-22.04
- python: '3.12-dev'
os: ubuntu-22.04
runs-on: ${{matrix.os || 'ubuntu-latest'}}
container: ${{ ((matrix.python == '2.7') && 'python:2.7') || null }}
defaults:
run:
shell: bash
runs-on: ${{matrix.os}}
steps:
- uses: actions/checkout@v3
- name: set up PATH
Expand All @@ -46,12 +43,19 @@ jobs:
- name: set up APT
if: matrix.python == '2.7'
run: |
printf 'Apt::Install-Recommends "false";\n' | tee -a /etc/apt/apt.conf
apt-get update
printf 'Apt::Install-Recommends "false";\n' | sudo tee -a /etc/apt/apt.conf
sudo apt-get update
- name: set up Python 2.7 (with APT + get-pip)
if: matrix.python == '2.7'
run: |
sudo apt-get install -y python-is-python2
curl https://bootstrap.pypa.io/pip/2.7/get-pip.py --output get-pip.py
sudo python get-pip.py
rm get-pip.py
- name: upgrade TLS stack
if: matrix.python == '2.7'
run: |
apt-get install --only-upgrade -y ca-certificates libgnutls30
sudo apt-get install --only-upgrade -y ca-certificates libgnutls30
- name: install setuptools (if distutils is missing)
if: env.pythonLocation
run: |
Expand Down

0 comments on commit b83c2ef

Please # to comment.