55 lines
1.7 KiB
YAML
55 lines
1.7 KiB
YAML
# Copyright (C) 2024 Intel Corporation
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
name: SearchQnA-test
|
|
|
|
on:
|
|
pull_request_target:
|
|
branches: [main]
|
|
types: [opened, reopened, ready_for_review, synchronize] # added `ready_for_review` since draft is skipped
|
|
paths:
|
|
- SearchQnA/**
|
|
- "!**.md"
|
|
- "!**/ui/**"
|
|
- .github/workflows/SearchQnA.yml
|
|
workflow_dispatch:
|
|
|
|
# If there is a new commit, the previous jobs will be canceled
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
SearchQnA:
|
|
runs-on: aise-cluster
|
|
strategy:
|
|
matrix:
|
|
job_name: ["langchain"]
|
|
fail-fast: false
|
|
steps:
|
|
- name: Clean Up Working Directory
|
|
run: sudo rm -rf ${{github.workspace}}/*
|
|
|
|
- name: Checkout out Repo
|
|
uses: actions/checkout@v4
|
|
with:
|
|
ref: "refs/pull/${{ github.event.number }}/merge"
|
|
- name: Run Test
|
|
env:
|
|
HUGGINGFACEHUB_API_TOKEN: ${{ secrets.HUGGINGFACEHUB_API_TOKEN }}
|
|
GOOGLE_CSE_ID: ${{ secrets.GOOGLE_CSE_ID }}
|
|
GOOGLE_API_KEY: ${{ secrets.GOOGLE_API_KEY }}
|
|
AISE_GAUDI_00_IP: ${{ secrets.AISE_GAUDI_00_IP }}
|
|
AISE_CLUSTER_01_2_IP: ${{ secrets.AISE_CLUSTER_01_2_IP }}
|
|
AISE_CLUSTER_01_3_IP: ${{ secrets.AISE_CLUSTER_01_3_IP }}
|
|
run: |
|
|
cd ${{ github.workspace }}/SearchQnA/tests
|
|
bash test_${{ matrix.job_name }}_inference.sh
|
|
|
|
- name: Publish pipeline artifact
|
|
if: ${{ !cancelled() }}
|
|
uses: actions/upload-artifact@v4
|
|
with:
|
|
name: ${{ matrix.job_name }}
|
|
path: ${{ github.workspace }}/SearchQnA/tests/*.log
|