Skip to content

feat: remover envío de email cuando CUM no existe #112

feat: remover envío de email cuando CUM no existe

feat: remover envío de email cuando CUM no existe #112

Workflow file for this run

name: Selenium Tests
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-latest
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: Remove Chrome
run: sudo apt purge google-chrome-stable
- name: Remove default Chromium
run: sudo apt purge chromium-browser
- name: Install chromedriver manually
run: |
wget https://chromedriver.storage.googleapis.com/108.0.5359.22/chromedriver_linux64.zip
unzip chromedriver_linux64.zip
sudo mv chromedriver /usr/local/bin
sudo chmod +x /usr/local/bin/chromedriver
- name: Django commands
run: python manage.py collectstatic
- name: Tests loading photo
run: python manage.py test core.apps.base.tests.test_basic_flow
- name: Tests without loading photo
run: python manage.py test core.apps.base.tests.test_basic_flow_no_photo