Some checks failed
CI/CD Pipeline / Run Tests (push) Failing after 45s
CI/CD Pipeline / Code Quality Checks (push) Failing after 48s
CI/CD Pipeline / Build Docker Images (push) Has been skipped
CI/CD Pipeline / Push to Gitea Registry (push) Has been skipped
CI/CD Pipeline / Deploy to Server (push) Has been skipped
18 lines
469 B
Bash
Executable File
18 lines
469 B
Bash
Executable File
#!/bin/bash
|
|
# Production-like Django test runner (PostgreSQL + migrations)
|
|
|
|
set -euo pipefail
|
|
|
|
cd "$(dirname "$0")/../src" || exit 1
|
|
|
|
export PYTHONPATH=.
|
|
export DJANGO_SETTINGS_MODULE=settings.test_postgres
|
|
|
|
COMMON_ADDOPTS="--verbose --tb=short --reuse-db --strict-markers --strict-config --color=yes"
|
|
|
|
if [ "$#" -eq 0 ]; then
|
|
uv run pytest ../tests --migrations -o "addopts=${COMMON_ADDOPTS}"
|
|
else
|
|
uv run pytest "$@" --migrations -o "addopts=${COMMON_ADDOPTS}"
|
|
fi
|