Skip to content

SDK Library Integration Tests Runner 571/merge by @alexkuzmik #644

SDK Library Integration Tests Runner 571/merge by @alexkuzmik

SDK Library Integration Tests Runner 571/merge by @alexkuzmik #644

# 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
- anthropic
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
anthropic_tests:
needs: [init_environment]
if: contains(fromJSON('["anthropic", "all"]'), needs.init_environment.outputs.LIBS)
uses: ./.github/workflows/lib-anthropic-tests.yml
secrets: inherit