Skip to content

Commit 444f4ff

Browse files
committed
update ci tests
1 parent 38f0a59 commit 444f4ff

File tree

1 file changed

+13
-4
lines changed

1 file changed

+13
-4
lines changed

.github/workflows/ci-tests.yml

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,13 +56,22 @@ jobs:
5656
run: |
5757
npm install -g azure-functions-core-tools@4 --unsafe-perm true
5858
59-
- name: Start Azure Functions
59+
- name: Test function imports
6060
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+
"
6370
71+
- name: Start Azure Functions
72+
run: |
6473
# 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 &
6675
echo $! > func.pid
6776
6877
# Wait for the functions to be ready with better checking

0 commit comments

Comments
 (0)