openfaas / python-flask-template

HTTP and Flask-based OpenFaaS templates for Python 3
MIT License
85 stars 86 forks source link

fix: ensure test layer is in the build DAG #73

Open LucasRoesler opened 5 months ago

LucasRoesler commented 5 months ago

Some builders will exclude layers that do not contribute to the final target layer, meaning the ship layer for these templates. This means that the test layer is often optimized away by modern builders.

We add the test layer as a dependency of the ship layer to ensure it is always run.

Motivation and Context

Resolves #71

How Has This Been Tested?

Yes, running docker build will now show the test layer in the output. This was also documented in the issue.

Types of changes

Checklist: