feat: remover envío de email cuando CUM no existe #33
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: API | |
on: [pull_request_target] | |
env: # Or as an environment variable | |
SECRET_KEY: ${{ secrets.SECRET_KEY }} | |
DEBUG: ${{ secrets.DEBUG }} | |
EMAIL_BACKEND: ${{ secrets.EMAIL_BACKEND }} | |
EMAIL_PORT: ${{ secrets.EMAIL_PORT }} | |
EMAIL_USE_TLS: ${{ secrets.EMAIL_USE_TLS }} | |
EMAIL_BCC: ${{ secrets.EMAIL_BCC }} | |
EMAIL_HOST: ${{ secrets.EMAIL_HOST }} | |
EMAIL_HOST_USER: ${{ secrets.EMAIL_HOST_USER }} | |
EMAIL_HOST_PASSWORD: ${{ secrets.EMAIL_HOST_PASSWORD }} | |
EMAIL_API_MEDICAR: ${{ secrets.EMAIL_API_MEDICAR }} | |
PWD_API_MEDICAR: ${{ secrets.PWD_API_MEDICAR }} | |
FBASE_APIKEY: ${{ secrets.FBASE_APIKEY }} | |
FBASE_AUTHDOMAIN: ${{ secrets.FBASE_AUTHDOMAIN }} | |
FBASE_DATABASEURL: ${{ secrets.FBASE_DATABASEURL }} | |
FBASE_PROJECTID: ${{ secrets.FBASE_PROJECTID }} | |
FBASE_STORAGEBUCKET: ${{ secrets.FBASE_STORAGEBUCKET }} | |
FBASE_MESSAGINGSENDERID: ${{ secrets.FBASE_MESSAGINGSENDERID }} | |
jobs: | |
build: | |
runs-on: ubuntu-20.04 | |
strategy: | |
matrix: | |
python-version: [3.8] | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v1 | |
with: | |
python-version: 3.8 | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi | |
- name: Unitests | |
run: | | |
python manage.py test core.apps.api.tests |