openfaas / python-flask-template

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

fix: tox config file as in sub directory correcting WORKDIR #46

Closed saikiran2603 closed 3 years ago

saikiran2603 commented 3 years ago

Signed-off-by: saikiran neo2603@gmail.com

Tox config is not in the directory from where tox command is executed, moved WORKDIR change which was happening before test to after , this ensures tox executes from inside the function folder.

Description

moved WORKDIR command after the test execution , modified copy and chown command to execute properly from new WORKDIR

Motivation and Context

helps fix issue #44

How Has This Been Tested?

tested with creating new function and executing faas build.

Types of changes

Checklist:

LucasRoesler commented 3 years ago

@alexellis this is :shipit: