Skip to content

Commit

Permalink
CI: Try to fix container tests #1196
Browse files Browse the repository at this point in the history
  • Loading branch information
dennissiemensma committed Jun 10, 2024
1 parent d378e70 commit 7af4567
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
5 changes: 1 addition & 4 deletions .github/workflows/automated-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion provisioning/container/Containerfile-dev
Original file line number Diff line number Diff line change
Expand Up @@ -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


# -----------------------------------------------------------
Expand Down

0 comments on commit 7af4567

Please sign in to comment.