From be34fc3ad1da9d24f2bcdd771bf6e540e036fb96 Mon Sep 17 00:00:00 2001 From: Sebastian Thiel Date: Sun, 12 Apr 2020 14:04:12 +0800 Subject: [PATCH] add all suggestions to pyenv --- .github/workflows/rust.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index a53ed6f52b..2676b34954 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -18,8 +18,11 @@ jobs: - uses: actions/checkout@v2 - name: Prepare python run: | + set -x curl https://pyenv.run | bash - echo 'export PATH="$PYENV_ROOT/bin:$PATH"' >> ~/.bashrc + { echo 'export PATH="$PYENV_ROOT/bin:$PATH"'; + echo 'eval "$(pyenv init -)"'; + echo 'eval "$(pyenv virtualenv-init -)"'; } >> ~/.bashrc source ~/.bashrc pyenv versions pyenv install --skip-existing "${PYENV_VERSION}"