Skip to content

Commit 2789dab

Browse files
Fix python2
1 parent 227cea7 commit 2789dab

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

.github/workflows/test.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,21 @@ jobs:
3737
steps:
3838
- uses: actions/checkout@v4
3939

40-
- name: Set up Python ${{ matrix.python-version }}
40+
- name: Setup Python
4141
uses: actions/setup-python@v5
42+
if: matrix.python-version != '2.7'
4243
with:
4344
python-version: ${{ matrix.python-version }}
4445

46+
- name: Install Python 2.7 manually
47+
if: matrix.python-version == '2.7'
48+
run: |
49+
sudo apt-get update
50+
sudo apt-get install -y python2.7 python2.7-dev python2.7-distutils curl
51+
curl https://bootstrap.pypa.io/pip/2.7/get-pip.py --output get-pip.py
52+
sudo python2.7 get-pip.py
53+
python2.7 --version
54+
4555
- name: Install dependencies
4656
run: |
4757
python -m pip install --upgrade pip

0 commit comments

Comments
 (0)