diff --git a/.mise.toml b/.mise.toml index 127b32173..d344b3c97 100644 --- a/.mise.toml +++ b/.mise.toml @@ -32,10 +32,10 @@ ruff check \ description = "Run Python tests" run = """ mkdir -p coverage_output -docker compose down --volumes --remove-orphans -docker compose build tests -docker compose run --rm --no-TTY tests -docker compose down --volumes --remove-orphans +docker compose --file tests.yaml down --volumes --remove-orphans +docker compose --file tests.yaml build tests +docker compose --file tests.yaml run --rm --no-TTY tests +docker compose --file tests.yaml down --volumes --remove-orphans """ [tasks."application:service:run:production"] diff --git a/Dockerfile.test b/Dockerfile.tests similarity index 99% rename from Dockerfile.test rename to Dockerfile.tests index 8c5ae264c..0c47ddfbb 100644 --- a/Dockerfile.test +++ b/Dockerfile.tests @@ -10,6 +10,7 @@ RUN apt-get update && apt-get install -y \ && rm -rf /var/lib/apt/lists/* ENV PYTEST_ADDOPTS="--rootdir=/tests" + ENV PYTHON=1 WORKDIR /tests diff --git a/compose.yaml b/tests.yaml similarity index 93% rename from compose.yaml rename to tests.yaml index e668fe1c9..2465647f4 100644 --- a/compose.yaml +++ b/tests.yaml @@ -6,7 +6,7 @@ services: image: pocketsizefund-tests:latest build: context: . - dockerfile: Dockerfile.test + dockerfile: Dockerfile.tests tags: - pocketsizefund-tests:latest volumes: