Ajustado e-mail de confirmacao e CI/CD #9
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: Integração contínua | |
on: | |
pull_request: | |
push: | |
branches: | |
- main | |
jobs: | |
build: | |
env: | |
PIPENV_NO_INHERIT: 1 | |
PIPENV_IGNORE_VIRTUALENVS: 1 | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python 3.10 | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.10' | |
- name: Install dependencies | |
run: | | |
pip install pipenv | |
pipenv sync --dev | |
cp contrib/env-sample .env | |
- name: Run flake8 | |
run: | | |
pipenv run flake8 . | |
- name: Run tests | |
run: | | |
pipenv run python manage.py test |