Skip to content

Commit ec7c5a7

Browse files
committed
Update ttt.yml
1 parent 6878b40 commit ec7c5a7

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

.github/workflows/ttt.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -38,16 +38,16 @@ jobs:
3838
install: |
3939
apt-get update
4040
apt-get install -y --no-install-recommends software-properties-common curl
41-
sudo add-apt-repository ppa:deadsnakes/ppa
42-
sudo apt update
43-
apt-get install -y python${{ matrix.python-version }}-venv
41+
curl -fsSL https://pyenv.run | bash
42+
export PATH="$HOME/.pyenv/bin:$PATH"
43+
eval "$(pyenv init --path)"
44+
pyenv install ${{ matrix.python-version }}
45+
pyenv global ${{ matrix.python-version }}
4446
run: |
4547
ls -lrth /artifacts
46-
PYTHON=python${{ matrix.python-version }}
47-
$PYTHON -m venv venv
48-
venv/bin/pip install -U pip
49-
venv/bin/pip install longport --no-index --find-links /artifacts --force-reinstall
50-
venv/bin/python -c 'import longport'
48+
pip install -U pip
49+
pip install longport --no-index --find-links /artifacts --force-reinstall
50+
python -c 'import longport'
5151
- name: Upload wheels
5252
uses: actions/upload-artifact@v4
5353
with:

0 commit comments

Comments
 (0)