name: Build RCAMP and run unit tests
on: [push, pull_request]
jobs:
  run_rcamp_tests:
    runs-on: ubuntu-latest

    steps:
    - uses: actions/checkout@v2
    - name: Build
      run: export UWSGI_UID=$(id -u)
      run: export UWSGI_GID=$(id -g)
      run: docker-compose build
      run: docker-compose up -d
      run: docker-compose exec rcamp-uwsgi bash -c 'sleep 30s && python manage.py migrate'

    - name: Run Tests
      run: docker-compose exec rcamp-uwsgi python3 manage.py test

    - name: Stop Containers
      run: docker-compose down --remove-orphans

name: Build RCAMP and run unit tests
on: [push, pull_request]
jobs:
  run_rcamp_tests:
    runs-on: ubuntu-latest

    steps:
    - uses: actions/checkout@v2
    - name: Build
    - run: export UWSGI_UID=$(id -u)
    - run: export UWSGI_GID=$(id -g)
    - run: docker-compose build
    - run: docker-compose up -d
    - run: docker-compose exec rcamp-uwsgi bash -c 'sleep 30s && python manage.py migrate'

    - name: Run Tests
    - run: docker-compose exec rcamp-uwsgi python3 manage.py test

    - name: Stop Containers
    - run: docker-compose down --remove-orphans

Add - for invalid file fix
Add - for invalid file fix
