[WIP] Add tests and coverage

This commit is contained in:
Kylian Schmidt
2025-09-08 10:52:58 +02:00
parent be99b3e601
commit 657b273975
21 changed files with 7919 additions and 158 deletions
+8 -2
View File
@@ -6,7 +6,7 @@ From: python:3.11-slim
apt-get install -y --no-install-recommends imagemagick
rm -rf /var/lib/apt/lists/*
pip install --no-cache-dir jinja2 pyyaml
pip install --no-cache-dir jinja2 pyyaml coverage pytest pytest-cov
mkdir -p /src
%files
@@ -17,4 +17,10 @@ From: python:3.11-slim
%runscript
cd /src
exec python3 generate_gallery.py "$@"
exec python3 generate_gallery.py "$@"
%test
# Run container tests with coverage to validate the build
echo "Running container validation tests with coverage..."
cd /src
python3 tests/run_coverage.py