Skip to content

Commit

Permalink
CI: Re-add Py2.7 support by using the pre-installed system Python 2.7.
Browse files Browse the repository at this point in the history
  • Loading branch information
scoder committed Aug 24, 2023
1 parent 96c5842 commit 57a4469
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
12 changes: 12 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -160,9 +160,21 @@ jobs:

- name: Set up Python
uses: actions/setup-python@v4
if: startsWith(matrix.python-version, '3.')
with:
python-version: ${{ matrix.python_version }}

- name: Set up Python2 (Linux)
if: matrix.python-version == '2.7' && startsWith(matrix.os, 'ubuntu')
run: |
sudo ln -fs python2 /usr/bin/python
sudo apt-get update
sudo apt-get install python-setuptools python2-dev
curl https://bootstrap.pypa.io/pip/2.7/get-pip.py --output get-pip.py
sudo python2 get-pip.py
ls -l /usr/bin/pip* /usr/local/bin/pip*
which pip
- name: Install dependencies
run: |
python -m pip install -U pip setuptools wheel
Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[tox]
envlist = py{35,36,37,38,39,310,311,312}
envlist = py{27,35,36,37,38,39,310,311,312}

[testenv]
platform =
Expand Down

0 comments on commit 57a4469

Please sign in to comment.