[2차] resume API, login API 수정 및 required field 검사 추가 #44
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 with SQLite | |
on: | |
push: | |
branches: [ '*' ] | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: 3.8 | |
- name: Install dependencies | |
run: | | |
pip install --upgrade pip | |
pip install -r app/requirements.txt | |
- name: Run tests | |
env: | |
SECRET_KEY: ${{ secrets.SECRET_KEY }} | |
DJANGO_ALLOWED_HOSTS: ${{ secrets.DJANGO_ALLOWED_HOSTS }} | |
run: | | |
cd app | |
python manage.py makemigrations | |
python manage.py migrate | |
python manage.py test |