Update main.yml #24
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: Django Tests CI | |
on: | |
push: | |
branches: ["master", "develop"] | |
pull_request: | |
branches: ["develop"] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup pyenv | |
run: | | |
curl https://pyenv.run | bash | |
export PATH="$HOME/.pyenv/bin:$PATH" | |
export PATH="$HOME/.pyenv/bin:$PATH" | |
eval "$(pyenv virtualenv-init -)" | |
exec "$SHELL" | |
- name: Install pyenv versions | |
run: | | |
pyenv install 3.8.13 | |
pyenv activate 3.8.13 | |
python -m pip install --upgrade pip | |
pip install tox | |
- name: Run tox | |
run: tox |