Skip to content

Implemented 'docker exec' instead of 'run' #55

Implemented 'docker exec' instead of 'run'

Implemented 'docker exec' instead of 'run' #55

name: Running Tests
on:
push:
branches:
- main
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Docker Build Image
run: |
cd ./Django/communicado
chmod +x mac_docker_build_and_run.sh
- name: Run Django migrations
run: |
cd ./Django/communicado
docker exec python manage.py makemigrations
docker exec python manage.py migrate || true
- name: Run Tests
run: |
cd ./Django/communicado
docker exec run web python manage.py test