add migrate and load data in readme installation #112
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 App Test | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
build-and-test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Code | |
uses: actions/checkout@v2 | |
- name: Build and Test | |
run: | | |
docker-compose up -d --build | |
sleep 10 | |
docker-compose run web ./manage.py test main.tests.URLTests.homepage | |
docker-compose down |