[Friend] Friend 앱 리팩토링 및 CI 정책 추가 #5
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: alaltalk CI | ||
on: | ||
pull_request: | ||
branches: | ||
- "**" | ||
jobs: | ||
checks: | ||
runs-on: ubuntu-20.04 | ||
environment: CI | ||
env: | ||
PIPENV_VENV_IN_PROJECT: enable | ||
SECRET_KEY: ${{ env.SECRET_KEY }} | ||
Check failure on line 15 in .github/workflows/ci.yml GitHub Actions / alaltalk CIInvalid workflow file
|
||
EMAIL_BACKEND: ${{ env.EMAIL_BACKEND }} | ||
EMAIL_HOST: ${{ env.EMAIL_HOST }} | ||
EMAIL_PORT: ${{ env.EMAIL_PORT }} | ||
EMAIL_HOST_USER: ${{ env.EMAIL_HOST_USER }} | ||
EMAIL_HOST_PASSWORD: ${{ env.EMAIL_HOST_PASSWORD }} | ||
EMAIL_USE_TLS: ${{ env.EMAIL_USE_TLS }} | ||
EMAIL_USE_SSL: ${{ env.EMAIL_USE_SSL }} | ||
services: | ||
mysql: | ||
image: mysql:8.0 | ||
env: | ||
MYSQL_DATABASE: alaltalk | ||
MYSQL_ROOT_PASSWORD: alaltalk | ||
ports: | ||
- 33306:3306 | ||
options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3 | ||
redis: | ||
image: redis | ||
ports: | ||
- 6379:6379 | ||
options: --health-cmd "redis-cli ping" --health-interval=10s --health-timeout=5s --health-retries=3 | ||
steps: | ||
- name: Checkout source code | ||
uses: actions/checkout@v2 | ||
- name: Setup Python | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: "3.8.10" | ||
- name: Install pipenv | ||
run: | | ||
python -m pip install --upgrade pipenv wheel | ||
- name: Install dependencies | ||
run: | | ||
pipenv install | ||
- name: Run tests | ||
id: run_test | ||
run: | | ||
pipenv run pytest |