Skip to content

Commit

Permalink
for test
Browse files Browse the repository at this point in the history
Signed-off-by: chensuyue <[email protected]>
  • Loading branch information
chensuyue committed Aug 18, 2024
1 parent 1414874 commit 6ee903d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/_get-test-matrix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,10 @@ jobs:
run: |
set -xe
if [ "${{ github.event_name }}" == "pull_request" ] || [ "${{ github.event_name }}" == "pull_request_target" ]; then
base_commit=${{ github.event.pull_request.base.sha }}
LATEST_COMMIT_SHA=$(curl -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \
"https://api.github.com/repos/opea-project/GenAIComps/commits?sha=main" | jq -r '.[0].sha')
echo "Latest commit SHA is $LATEST_COMMIT_SHA"
base_commit=${$LATEST_COMMIT_SHA}
else
base_commit=$(git rev-parse HEAD~1) # push event
fi
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pr-microservice-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
name: MicroService-test

on:
pull_request_target:
pull_request:
branches: [main]
types: [opened, reopened, ready_for_review, synchronize] # added `ready_for_review` since draft is skipped
paths:
Expand Down
1 change: 1 addition & 0 deletions comps/agent/langchain/test.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# Copyright (C) 2024 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
# for test only

import argparse
import json
Expand Down

0 comments on commit 6ee903d

Please sign in to comment.