Files
GenAIExamples/.github/workflows/embeddings-comp-test.yml
chen, suyue 12df21e403 update license template (#37)
Signed-off-by: chensuyue <suyue.chen@intel.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2024-05-10 11:19:56 +08:00

51 lines
1.4 KiB
YAML

# Copyright (C) 2024 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
name: EmbeddingsMicroService-test
on:
# pull_request:
# branches: [main]
# types: [opened, reopened, ready_for_review, synchronize] # added `ready_for_review` since draft is skipped
# paths:
# - .github/workflows/mega-test.yml
# - comps/mega/**
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:
EmbeddingsMicroService:
runs-on: aise-cluster
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 UT
env:
HUGGINGFACEHUB_API_TOKEN: ${{ secrets.HUGGINGFACEHUB_API_TOKEN }}
run: |
cd .github/workflows/scripts
bash test_ut.sh --test_name embeddings
- name: Run Workflow
env:
HUGGINGFACEHUB_API_TOKEN: ${{ secrets.HUGGINGFACEHUB_API_TOKEN }}
run: |
cd tests/workflows
bash test_embeddings_comps.sh
- name: Publish pipeline artifact
if: ${{ !cancelled() }}
uses: actions/upload-artifact@v4
with:
path: ${{ github.workspace }}/.github/workflows/scripts/*.log