gh-3: 사용자 회원가입 API 구현 #1
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: | |
pull_request: | |
branches: [ "develop", "main" ] | |
jobs: | |
django-test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Build docker | |
run: docker compose up -d --build | |
- name: Run mypy | |
run: docker compose run django poetry run mypy --config mypy.ini budget_management/ | |
- name: Run isort | |
run: docker compose run django poetry run isort budget_management/ --check | |
- name: Run black | |
run: docker compose run django poetry run black budget_management/ --check | |
- name: Run flake8 | |
run: docker compose run django poetry run flake8 | |
- name: Migration test database | |
run: docker compose run django poetry run python manage.py migrate | |
- name: Run Test | |
run: | | |
docker compose run django poetry run coverage run manage.py test && | |
docker compose run django poetry run coverage report --fail-under=80 |