File tree Expand file tree Collapse file tree 1 file changed +13
-4
lines changed Expand file tree Collapse file tree 1 file changed +13
-4
lines changed Original file line number Diff line number Diff line change @@ -56,13 +56,22 @@ jobs:
56
56
run : |
57
57
npm install -g azure-functions-core-tools@4 --unsafe-perm true
58
58
59
- - name : Start Azure Functions
59
+ - name : Test function imports
60
60
run : |
61
- # Ensure we're using Python v2 programming model
62
- export AzureFunctionsJobHost__functionTimeout=00:05:00
61
+ echo "Testing function_app.py import..."
62
+ python -c "
63
+ try:
64
+ import function_app
65
+ print('SUCCESS: function_app imported')
66
+ except Exception as e:
67
+ print('FAILED:', str(e))
68
+ exit(1)
69
+ "
63
70
71
+ - name : Start Azure Functions
72
+ run : |
64
73
# Start Azure Functions in the background
65
- func start --port 7071 --no-build --python > func.log 2>&1 &
74
+ func start --port 7071 --no-build --verbose > func.log 2>&1 &
66
75
echo $! > func.pid
67
76
68
77
# Wait for the functions to be ready with better checking
You can’t perform that action at this time.
0 commit comments