Skip to content

Commit a5afd0f

Browse files
authored
Refactor Python setup in build-test workflow
Removed caching and manual installation of pyenv and Python 3.5.10. Added setup step for Python using pyenv-action.
1 parent f68835f commit a5afd0f

File tree

1 file changed

+3
-18
lines changed

1 file changed

+3
-18
lines changed

.github/workflows/build-test.yml

Lines changed: 3 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -25,25 +25,10 @@ jobs:
2525
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
2626
version: 1.0
2727

28-
- name: Cache pyenv versions
29-
uses: actions/cache@v4
28+
- name: Setup Python
29+
uses: shamilniyas/[email protected]
3030
with:
31-
path: $HOME/.pyenv/versions
32-
key: ${{ runner.os }}-pyenv-3.5.10
33-
restore-keys: |
34-
${{ runner.os }}-pyenv-
35-
36-
- name: Instala pyenv e Python 3.5.10
37-
run: |
38-
curl https://pyenv.run | bash
39-
export PYENV_ROOT="$HOME/.pyenv"
40-
export PATH="$PYENV_ROOT/bin:$PATH"
41-
echo "$PYENV_ROOT/bin:$PATH" >> $GITHUB_PATH
42-
eval "$(pyenv init -)"
43-
pyenv install -s 3.5.10
44-
pyenv global 3.5.10
45-
python --version
46-
python -m pip install --upgrade pip setuptools wheel
31+
default: 3.5.10
4732

4833
- name: Instala dependências
4934
run: pip install -r requirements.txt

0 commit comments

Comments
 (0)