Skip to content
This repository was archived by the owner on Jul 4, 2025. It is now read-only.

Commit b783aa2

Browse files
committed
fix: Update
1 parent 6f3f438 commit b783aa2

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

.github/workflows/cortex-js-openai-coverage.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ jobs:
2424
uses: actions/checkout@v3
2525
with:
2626
fetch-depth: 0
27+
ref: dev
2728

2829
- name: Installing node
2930
uses: actions/setup-node@v3
@@ -71,11 +72,10 @@ jobs:
7172
cp ../coverage/endpoint_mapping.json tests/endpoints_mapping.json
7273
7374
prism mock ../api.json > prism.log & prism_pid=$!
74-
# pytest --endpoint "$ENDPOINTS" --reportportal --html=report.html && kill $prism_pid
75-
pytest --endpoint all --reportportal --html=report.html && kill $prism_pid
75+
pytest --endpoint "$ENDPOINTS" --reportportal --html=report.html && kill $prism_pid
7676
deactivate
77-
# env:
78-
# ENDPOINTS: ${{ github.event.inputs.endpoints }}
77+
env:
78+
ENDPOINTS: ${{ github.event.inputs.endpoints }}
7979

8080

8181
- name: Collect RP artifacts
@@ -87,11 +87,11 @@ jobs:
8787
cp today-endpoint.json $current_date.json
8888
cat $current_date.json
8989
90-
- name: Upload latest-mac.yml
90+
- name: Upload report json files to S3
9191
run: |
9292
current_date=$(date +"%m-%d-%Y")
93-
aws s3api put-object --endpoint-url https://${{ secrets.CLOUDFLARE_ACCOUNT_ID }}.r2.cloudflarestorage.com --bucket ${{ secrets.CLOUDFLARE_R2_BUCKET_NAME }} --key "openai-api-collection-test/$current_date.json" --body "./$current_date.json"
94-
aws s3api put-object --endpoint-url https://${{ secrets.CLOUDFLARE_ACCOUNT_ID }}.r2.cloudflarestorage.com --bucket ${{ secrets.CLOUDFLARE_R2_BUCKET_NAME }} --key "openai-api-collection-test/today-endpoint.json" --body "./today-endpoint.json"
93+
aws s3api put-object --endpoint-url https://${{ secrets.CLOUDFLARE_ACCOUNT_ID }}.r2.cloudflarestorage.com --bucket ${{ secrets.CLOUDFLARE_R2_BUCKET_NAME }} --key "openai-api-collection-test/$current_date.json" --body "./$current_date.json" --content-type "application/json"
94+
aws s3api put-object --endpoint-url https://${{ secrets.CLOUDFLARE_ACCOUNT_ID }}.r2.cloudflarestorage.com --bucket ${{ secrets.CLOUDFLARE_R2_BUCKET_NAME }} --key "openai-api-collection-test/total-coverage.json" --body "./total-coverage.json" --content-type "application/json"
9595
env:
9696
AWS_ACCESS_KEY_ID: ${{ secrets.CLOUDFLARE_R2_ACCESS_KEY_ID }}
9797
AWS_SECRET_ACCESS_KEY: ${{ secrets.CLOUDFLARE_R2_SECRET_ACCESS_KEY }}

0 commit comments

Comments
 (0)