Skip to content

Commit b54dfce

Browse files
committed
🔧 chore: simplify tests task to use docker compose
Use docker compose run instead of docker run for consistency with other tasks and access to dependent services.
1 parent e84fa12 commit b54dfce

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

Taskfile.yaml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,6 @@ tasks:
138138
- python -m uv pip compile --upgrade-package $PACKAGE --output-file requirements/production.txt requirements/production.in
139139

140140
tests:
141-
env:
142-
DJANGO_SETTINGS_MODULE: pythonie.settings.tests
141+
desc: Run all tests
143142
cmds:
144-
- docker run --rm -p 8000:8000 --env-file development.env -e DJANGO_SETTINGS_MODULE=$DJANGO_SETTINGS_MODULE -v $PWD:/app -w /app -it $DOCKER_IMAGE python pythonie/manage.py test pythonie --verbosity=3
143+
- docker compose run --rm -e DJANGO_SETTINGS_MODULE=pythonie.settings.tests web python pythonie/manage.py test pythonie --verbosity=3

0 commit comments

Comments
 (0)