Skip to content

Commit

Permalink
test3.
Browse files Browse the repository at this point in the history
Signed-off-by: zepan <[email protected]>
  • Loading branch information
ZePan110 committed Aug 19, 2024
1 parent b3214c4 commit c167fda
Showing 1 changed file with 6 additions and 57 deletions.
63 changes: 6 additions & 57 deletions .github/workflows/manual-comps-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,76 +6,25 @@ on:
pull_request:
branches: [main]
types: [opened, reopened, ready_for_review, synchronize]
# workflow_dispatch:
# inputs:
# # nodes:
# # default: "gaudi"
# # description: "Hardware to run test"
# # required: true
# # type: string
# service:
# default: "asr"
# description: "List of services to test [agent,asr,chathistory,dataprep,embeddings,guardrails,knowledgegraphs,llms,lvms,prompt_registry,ragas,reranks,retrievers,tts,vectorstores,web_retrievers]"
# required: true
# type: string
# name:
# default: "comps"
# description: "List of names to test [_faq-generation,_ls tefastrag,_haystack,_langchain,_langchain-mosec,_llama,_llava,_milvus,_mongo,_pgvector,_pii,_pinecone,_qdrant,_redis,_registry,_retrievers,_summarization,_tei,_text-generation,_tgi]"
# required: true
# type: string
# tag:
# default: "comps"
# description: "Tag to apply to images"
# required: true
# type: string
# # build:
# # default: true
# # description: 'Build test required images for Comps'
# # required: false
# # type: boolean
# # scan:
# # default: true
# # description: 'Scan all images with Trivy'
# # required: false
# # type: boolean
# # test_compose:
# # default: true
# # description: 'Test services with docker compose'
# # required: false
# # type: boolean
# # GenAIComps_branch:
# # default: "main"
# # description: 'GenAIComps branch for image build'
# # required: false
# # type: string

permissions: read-all
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

jobs:
get-test-matrix:
runs-on: ubuntu-latest
outputs:
services: "dataprep" #${{ steps.get-matrix.outputs.services }}
# nodes: ${{ steps.get-matrix.outputs.nodes }}
names: "_pgvector" #${{ steps.get-matrix.outputs.names }}

# steps:
# - name: Create Matrix
# id: get-matrix
# run: |
# services=($(echo ${{ inputs.services }} | tr ',' ' '))
# echo "services=$services_json" >> $GITHUB_OUTPUT
# # nodes=($(echo ${{ inputs.nodes }} | tr ',' ' '))
# # echo "nodes=$nodes_json" >> $GITHUB_OUTPUT
# names=($(echo ${{ inputs.names }} | tr ',' ' '))
# echo "names=$names_json" >> $GITHUB_OUTPUT

run-services:
needs: [get-test-matrix]
strategy:
matrix:
service: "dataprep" # ${{ fromJson(needs.get-test-matrix.outputs.services) }}
service: ${{ fromJson(needs.get-test-matrix.outputs.services) }}
# node: ${{ fromJson(needs.get-test-matrix.outputs.nodes) }}
name: "_pgvector" #${{ fromJson(needs.get-test-matrix.outputs.names }}
name: ${{ fromJson(needs.get-test-matrix.outputs.names }}
fail-fast: false
uses: ./.github/workflows/_comps-workflow.yml
with:
Expand Down

0 comments on commit c167fda

Please sign in to comment.