Skip to content

SDK Library Integration Tests Runner 353/merge by @jverre #487

SDK Library Integration Tests Runner 353/merge by @jverre

SDK Library Integration Tests Runner 353/merge by @jverre #487

# Runner for the suite of library integration tests
#
name: SDK Library Integration Tests Runner
run-name: "SDK Library Integration Tests Runner ${{ github.ref_name }} by @${{ github.actor }}"
on:
workflow_dispatch:
inputs:
libs:
description: "Choose specific library to test against or all"
required: true
type: choice
options:
- all
- openai
- langchain
- llama_index
schedule:
- cron: "0 0 */1 * *"
pull_request:
paths:
- 'sdks/python/**'
env:
SLACK_WEBHOOK_URL: ${{ secrets.ACTION_MONITORING_SLACK }}
LIBS: ${{ github.event.inputs.libs != '' && github.event.inputs.libs || 'all' }}
jobs:
init_environment:
name: Build
runs-on: ubuntu-latest
outputs:
LIBS: ${{ steps.init.outputs.LIBS }}
steps:
- name: Make LIBS variable global (workaround for cron)
id: init
run: |
echo "LIBS=${{ env.LIBS }}" >> $GITHUB_OUTPUT
openai_tests:
needs: [init_environment]
if: contains(fromJSON('["openai", "all"]'), needs.init_environment.outputs.LIBS)
uses: ./.github/workflows/lib-openai-tests.yml
secrets: inherit
langchain_tests:
needs: [init_environment]
if: contains(fromJSON('["langchain", "all"]'), needs.init_environment.outputs.LIBS)
uses: ./.github/workflows/lib-langchain-tests.yml
secrets: inherit
llama_index_tests:
needs: [init_environment]
if: contains(fromJSON('["llama_index", "all"]'), needs.init_environment.outputs.LIBS)
uses: ./.github/workflows/lib-llama-index-tests.yml
secrets: inherit