8000 fix ci by upgrading ubuntu and adding setup python manually · qiniu/python-sdk@99081ce · GitHub
[go: up one dir, main page]

Skip to content

Commit 99081ce

Browse files
committed
fix ci by upgrading ubuntu and adding setup python manually
1 parent d90a2ab commit 99081ce

File tree

1 file changed

+15
-2
lines changed

1 file changed

+15
-2
lines changed

.github/workflows/ci-test.yml

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,18 +6,31 @@ jobs:
66
fail 8000 -fast: false
77
max-parallel: 1
88
matrix:
9-
python_version: ['2.7', '3.4', '3.5', '3.6', '3.7', '3.8', '3.9']
10-
runs-on: ubuntu-18.04
9+
python_version: ['2.7', '3.4.10', '3.5', '3.6', '3.7', '3.8', '3.9']
10+
runs-on: ubuntu-20.04
1111
steps:
1212
- name: Checkout repo
1313
uses: actions/checkout@v2
1414
with:
1515
ref: ${{ github.ref }}
1616
- name: Setup python
17+
if: ${{ matrix.python_version != '3.4.10' }}
1718
uses: actions/setup-python@v2
1819
with:
1920
python-version: ${{ matrix.python_version }}
2021
architecture: x64
22+
- name: Setup python manually
23+
if: ${{ matrix.python_version == '3.4.10' }}
24+
env:
25+
PYTHON_SOURCE_URL: https://www.python.org/ftp/python/${{ matrix.python_version }}/Python-${{ matrix.python_version }}.tgz
26+
run: |
27+
cd /tmp
28+
curl -s -L "$PYTHON_SOURCE_URL" | tar -zxf - -C ./
29+
cd Python-${{ matrix.python_version }}
30+
./configure --enable-optimizations
31+
make
32+
sudo make install
33+
echo 'export PATH="/opt/python/bin:$PATH"' >> $HOME/.bashrc
2134
- name: Install dependencies
2235
run: |
2336
python -m pip install --upgrade pip

0 commit comments

Comments
 (0)
0