Add: add logger #147
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: CI | |
on: | |
push: | |
branches: [ develop ] | |
pull_request: | |
branches: [ develop ] | |
jobs: | |
back-test: | |
name: Back-end Test | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: 3.7 | |
cache: 'pip' | |
- name: Install dependencies | |
run: pip install -r requirements.txt | |
- name: Add dummy keys | |
run: | | |
mkdir keys && echo "DJANGO_SECRET_KEY" > keys/django_secret && touch keys/sso_secret | |
echo "DATABASES = {'default': {'ENGINE': 'django.db.backends.sqlite3',},}" > settings_local.py | |
- name: Run tests | |
run: pytest tests/ |