From cb8ee39835d8b7b2840707b4f8ff9048aaa236f5 Mon Sep 17 00:00:00 2001 From: Dennis Siemensma Date: Fri, 14 Jun 2024 21:06:52 +0200 Subject: [PATCH] Fix CI #1594 --- .github/workflows/automated-tests.yml | 4 ++-- provisioning/container/compose.test.yml | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) 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