mirror of
https://github.com/Hestia-Homes/ML.git
synced 2026-06-08 11:17:25 +00:00
correct the quotations
This commit is contained in:
parent
ad26148bbc
commit
56eace2b7f
1 changed files with 5 additions and 6 deletions
11
.github/workflows/MLPipelinePullRequest.yml
vendored
11
.github/workflows/MLPipelinePullRequest.yml
vendored
|
|
@ -86,12 +86,12 @@ jobs:
|
|||
- name: Test Lambda endpoint
|
||||
run: |
|
||||
sleep 5
|
||||
RESPONSE=$(curl -XPOST "http://localhost:9000/2015-03-31/functions/function/invocations" -d '{"body": "{\"file_location\": \"s3://retrofit-data-dev/sap_change_model/sample_data_for_cicd/20251102/sample_test.parquet\", \"property_id\": 1, \"portfolio_id\": 4, \"created_at\": \"now\", \"testing\": true}"}')
|
||||
RESPONSE=$(curl -XPOST "http://localhost:9000/2015-03-31/functions/function/invocations" -d '{"body": "{\"file_location\": \"s3://retrofit-data-dev/sap_change_model/sample_data_for_cicd/${timestamp}/sample_test.parquet\", \"property_id\": 1, \"portfolio_id\": 4, \"created_at\": \"now\", \"testing\": true}"}')
|
||||
echo "Lambda response: $RESPONSE"
|
||||
if [[ $RESPONSE != *"predictions"* ]]; then
|
||||
echo "Lambda invocation failed"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
- name: Get Lambda logs
|
||||
run: |
|
||||
docker logs $(docker ps -al -q)
|
||||
|
||||
- name: Stop Lambda container
|
||||
run: |
|
||||
|
|
@ -103,7 +103,6 @@ jobs:
|
|||
AWS_ACCESS_KEY_ID: ${{ secrets.ROBOT_AWS_ACCESS_KEY_ID }}
|
||||
AWS_SECRET_ACCESS_KEY: ${{ secrets.ROBOT_AWS_SECRET_ACCESS_KEY }}
|
||||
run: |
|
||||
sleep 5
|
||||
aws s3 rm --recursive s3://retrofit-data-dev/sap_change_model/sample_data_for_cicd/${timestamp}/
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue