Merge pull request #55 from alexdeathway/dependabot/pip/sqlparse-0.5.0 #44
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: Unit Tests | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
branches: | |
- master | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: create .env | |
run: mv template.env .env | |
- name: Build and start Docker containers | |
run: docker-compose -f docker-compose.yml up -d --build | |
- name: Run Django tests | |
run: docker exec gecom_django python manage.py test | |
- name: Stop and remove Docker containers | |
run: docker-compose down |