Docs: Add instructions for fixing migration issues with docker #78
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 CI | |
on: | |
push: | |
branches: ["main"] | |
pull_request: | |
branches: ["main"] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: true | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Build docker image and run tests | |
run: | | |
cd backend | |
docker compose build | |
docker compose run tutorai python manage.py makemigrations | |
docker compose run tutorai python manage.py migrate | |
docker compose up -d | |
docker compose run tutorai python manage.py test | |
docker compose down |