게시물 목록 API 작성 #35
Workflow file for this run
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 build | |
- name: Migration test database | |
run: docker compose run django poetry run python manage.py migrate | |
- name: Run isort | |
run: docker compose run django poetry run isort . --check | |
- name: Run black | |
run: docker compose run django poetry run black . --check | |
- name: Run flake8 | |
run: docker compose run django poetry run flake8 | |
- name: Run Test | |
run: docker compose run django poetry run python3 manage.py test |