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 # -----------------------------------------------------------