diff --git a/.github/workflows/automated-tests.yml b/.github/workflows/automated-tests.yml index 3a06be5e..2616cb98 100644 --- a/.github/workflows/automated-tests.yml +++ b/.github/workflows/automated-tests.yml @@ -31,7 +31,7 @@ jobs: docker-compose build - name: Check flake8 - run: docker compose run tests-dsmr-app poetry run flake8 -v + run: docker compose exec tests-dsmr-app poetry run flake8 -v - name: Run PostgreSQL tests - run: docker compose run tests-dsmr-app poetry run pytest + run: docker compose exec tests-dsmr-app poetry run pytest diff --git a/provisioning/container/compose.test.yml b/provisioning/container/compose.test.yml index b7053cb7..9758a79c 100644 --- a/provisioning/container/compose.test.yml +++ b/provisioning/container/compose.test.yml @@ -5,7 +5,8 @@ services: tests-dsmr-app: container_name: tests-dsmr-app - restart: 'no' + restart: 'unless-stopped' + command: '/app/manage.py runserver 8000' # This is just to make sure the container keeps running. build: context: . dockerfile: provisioning/container/Containerfile-dev