Skip to content

Added new workflow dependency #94

Added new workflow dependency

Added new workflow dependency #94

name: Running Tests
on:
push:
branches:
- main
workflow_dispatch:
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Docker Build Image
run: |
cd ./Django/communicado
chmod +x mac_testing.sh
./mac_testing.sh
- name: Run Django migrations
run: |
cd ./Django/communicado
docker exec communicado_container_test python manage.py makemigrations
docker exec communicado_container_test python manage.py migrate || true
- name: Run Tests
run: |
cd ./Django/communicado
docker exec communicado_container_test python manage.py test
notify-success:
runs-on: ubuntu-latest
needs: test
if: ${{ success() }}
steps:
- name: Notify Success
run: echo "Tests ran successfully"