Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .mise.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Comment thread
forstmeier marked this conversation as resolved.
"""

[tasks."application:service:run:production"]
Expand Down
1 change: 1 addition & 0 deletions Dockerfile.test → Dockerfile.tests
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion compose.yaml → tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ services:
image: pocketsizefund-tests:latest
build:
context: .
dockerfile: Dockerfile.test
dockerfile: Dockerfile.tests
tags:
- pocketsizefund-tests:latest
volumes:
Expand Down