Created
December 25, 2020 21:18
-
-
Save salma71/6d032405a32822697d763f107fc4a124 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Configure pyenv and pick the right version | |
on: [push, pull_request] | |
jobs: | |
# python installtion | |
install-python: | |
# should run on linux based operating system | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Install python version | |
# use the pyenv-action version 7 | |
uses: gabrielfalcao/pyenv-action@v7 | |
with: | |
default: 3.8.6 # pick 3.8.6 verion | |
command: pip install -U pip # upgrade pip after installing python | |
- name: create environment | |
run: pyenv local 3.8.6 && python -mvenv .venv386 | |
- name: Install dependencies | |
run: pip install -r requirements.txt --upgrade pip | |
- name: setup pyenv | |
id: pyenv_installation | |
uses: "gabrielfalcao/pyenv-action@v7" | |
- name: debug pyenv | |
run: echo ${{ steps.pyenv_installation.outputs.pyenv_root }} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment