-
Notifications
You must be signed in to change notification settings - Fork 1
41 lines (39 loc) · 1.45 KB
/
api.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
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