Add tests
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user