Skip to content

Commit e1d0526

Browse files
authored
Add pyenv to the PATH on github actions (#339)
* Add PYENV_ROOT to GITHUB_PATH in workflow
1 parent 621fcc4 commit e1d0526

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

.github/workflows/build-test.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ jobs:
3838
curl https://pyenv.run | bash
3939
export PYENV_ROOT="$HOME/.pyenv"
4040
export PATH="$PYENV_ROOT/bin:$PATH"
41+
echo "$PYENV_ROOT/bin:$PATH" >> $GITHUB_PATH
4142
eval "$(pyenv init -)"
4243
pyenv install -s 3.5.10
4344
pyenv global 3.5.10

.github/workflows/github-pages.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,14 @@ jobs:
4141
curl https://pyenv.run | bash
4242
export PYENV_ROOT="$HOME/.pyenv"
4343
export PATH="$PYENV_ROOT/bin:$PATH"
44+
echo "$PYENV_ROOT/bin:$PATH" >> $GITHUB_PATH
4445
eval "$(pyenv init -)"
4546
pyenv install -s 3.5.10
4647
pyenv global 3.5.10
4748
python --version
4849
python -m pip install --upgrade pip setuptools wheel
50+
51+
4952
5053
- name: Instala dependências
5154
run: pip install -r requirements.txt

0 commit comments

Comments
 (0)