Skip to content

Commit f68835f

Browse files
authored
Integrate pyenv-action for Python setup
Replaced manual Python installation steps with pyenv-action for better efficiency.
1 parent e1d0526 commit f68835f

File tree

1 file changed

+3
-20
lines changed

1 file changed

+3
-20
lines changed

.github/workflows/github-pages.yml

Lines changed: 3 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -28,27 +28,10 @@ jobs:
2828
packages: make build-essential libssl-dev zlib1g-dev libbz2-dev libreadline-dev libsqlite3-dev wget curl llvm libncurses5-dev libncursesw5-dev xz-utils tk-dev libffi-dev liblzma-dev
2929
version: 1.0
3030

31-
- name: Cache pyenv versions
32-
uses: actions/cache@v4
31+
- name: Setup Python
32+
uses: shamilniyas/pyenv-action@v2.6.5
3333
with:
34-
path: $HOME/.pyenv/versions
35-
key: ${{ runner.os }}-pyenv-3.5.10
36-
restore-keys: |
37-
${{ runner.os }}-pyenv-
38-
39-
- name: Instala pyenv e Python 3.5.10
40-
run: |
41-
curl https://pyenv.run | bash
42-
export PYENV_ROOT="$HOME/.pyenv"
43-
export PATH="$PYENV_ROOT/bin:$PATH"
44-
echo "$PYENV_ROOT/bin:$PATH" >> $GITHUB_PATH
45-
eval "$(pyenv init -)"
46-
pyenv install -s 3.5.10
47-
pyenv global 3.5.10
48-
python --version
49-
python -m pip install --upgrade pip setuptools wheel
50-
51-
34+
default: 3.5.10
5235

5336
- name: Instala dependências
5437
run: pip install -r requirements.txt

0 commit comments

Comments
 (0)