mirror of
https://github.com/pyenv/pyenv.git
synced 2024-12-23 08:31:01 +00:00
Update ubuntu_tests.yml
This commit is contained in:
parent
ee9c1d2b1c
commit
7c18f8a10c
1 changed files with 10 additions and 8 deletions
18
.github/workflows/ubuntu_tests.yml
vendored
18
.github/workflows/ubuntu_tests.yml
vendored
|
@ -14,19 +14,21 @@ jobs:
|
||||||
# with:
|
# with:
|
||||||
# python-version: ${{ matrix.python-version }}
|
# python-version: ${{ matrix.python-version }}
|
||||||
# ... but in the repo, we want to test pyenv builds on Ubuntu
|
# ... but in the repo, we want to test pyenv builds on Ubuntu
|
||||||
# https://github.com/pyenv/pyenv#installation
|
|
||||||
- run: echo 'export PYENV_ROOT=$(pwd)' >> ~/.bash_profile
|
|
||||||
- run: echo 'export PATH="$PYENV_ROOT/bin:$PATH"' >> ~/.bash_profile
|
|
||||||
- run: echo -e 'if command -v bin/pyenv 1>/dev/null 2>&1; then\n eval "$(bin/pyenv init -)"\nfi' >> ~/.bash_profile
|
|
||||||
- run: |
|
- run: |
|
||||||
sudo apt-get install -y build-essential libssl-dev zlib1g-dev libbz2-dev \
|
sudo apt-get install -y build-essential libssl-dev zlib1g-dev libbz2-dev \
|
||||||
libreadline-dev libsqlite3-dev wget curl llvm libncurses5-dev libncursesw5-dev \
|
libreadline-dev libsqlite3-dev wget curl llvm libncurses5-dev libncursesw5-dev \
|
||||||
xz-utils tk-dev libffi-dev liblzma-dev python-openssl git
|
xz-utils tk-dev libffi-dev liblzma-dev python-openssl git
|
||||||
- run: cd $(bin/pyenv root) && git pull || true
|
# https://github.com/pyenv/pyenv#installation
|
||||||
|
- run: echo "$HOME" >> $PYENV_ROOT
|
||||||
|
- run: echo "$HOME/bin" >> $GITHUB_PATH
|
||||||
|
# - run: echo 'export PYENV_ROOT=$(pwd)' >> ~/.bash_profile
|
||||||
|
# - run: echo 'export PATH="$PYENV_ROOT/bin:$PATH"' >> ~/.bash_profile
|
||||||
|
- run: echo -e 'if command -v pyenv 1>/dev/null 2>&1; then\n eval "$(pyenv init -)"\nfi' >> ~/.bash_profile
|
||||||
|
- run: cd $(pyenv root) && git pull || true
|
||||||
- run: git pull
|
- run: git pull
|
||||||
- run: |
|
- run: |
|
||||||
bin/pyenv install ${{ matrix.python-version }}
|
pyenv install ${{ matrix.python-version }}
|
||||||
bin/pyenv global ${{ matrix.python-version }}
|
pyenv global ${{ matrix.python-version }}
|
||||||
bin/pyenv rehash
|
pyenv rehash
|
||||||
python --version
|
python --version
|
||||||
python -m pip --version
|
python -m pip --version
|
||||||
|
|
Loading…
Reference in a new issue