Add tests

This commit is contained in:
Peter Stockings
2024-12-31 00:08:08 +11:00
parent d3eba9ba5b
commit 164b23e913
5 changed files with 82 additions and 9 deletions

View File

@@ -40,6 +40,9 @@ COPY . .
# Copy the built TailwindCSS assets from the first stage
COPY --from=tailwind-builder /app/app/static/css/tailwind.css ./app/static/css/tailwind.css
# Run tests during the build process
RUN pytest --maxfail=5 --disable-warnings -v || (echo "Tests failed. Exiting." && exit 1)
# Expose the port Flask will run on
EXPOSE 5000