From 7af45676045069bdc7ac243e6bd84c1e3dff9d15 Mon Sep 17 00:00:00 2001 From: Dennis Siemensma Date: Mon, 10 Jun 2024 21:00:25 +0200 Subject: [PATCH] CI: Try to fix container tests #1196 --- .github/workflows/automated-tests.yml | 5 +---- provisioning/container/Containerfile-dev | 2 +- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/.github/workflows/automated-tests.yml b/.github/workflows/automated-tests.yml index 1dda8f7c..96597dd3 100644 --- a/.github/workflows/automated-tests.yml +++ b/.github/workflows/automated-tests.yml @@ -33,10 +33,7 @@ jobs: docker-compose build - name: Check flake8 - run: docker compose run tests-dsmr-app poetry run flake8 - - - name: Run SQLite tests - run: docker compose run -e DJANGO_DATABASE_ENGINE=django.db.backends.sqlite3 tests-dsmr-app poetry run pytest --cov --cov-report=html + run: docker compose exec tests-dsmr-app poetry run flake8 - name: Run PostgreSQL tests run: docker compose run tests-dsmr-app poetry run pytest --cov --cov-report=html diff --git a/provisioning/container/Containerfile-dev b/provisioning/container/Containerfile-dev index 530c7538..2e9718de 100644 --- a/provisioning/container/Containerfile-dev +++ b/provisioning/container/Containerfile-dev @@ -30,7 +30,7 @@ ENTRYPOINT poetry run python manage.py runserver 0.0.0.0:8000 FROM local-dsmrreader-dev AS local-dsmrreader-test EXPOSE "" -ENTRYPOINT poetry run pytest +ENTRYPOINT poetry check # -----------------------------------------------------------