Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 21 additions & 4 deletions .github/workflows/clt_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ jobs:
test-suite:
- name: Buddy
test_prefix: test/clt-tests/buddy/
- name: Buddy-lugins
- name: Buddy-plugins
test_prefix: test/clt-tests/buddy-plugins/
- name: Bugs
test_prefix: test/clt-tests/bugs/
Expand All @@ -62,8 +62,9 @@ jobs:
test_prefix: test/clt-tests/expected-errors/
- name: Fulltext-search
test_prefix: test/clt-tests/fulltext-search/
- name: MCL
test_prefix: test/clt-tests/mcl/
- name: Auto-embeddings
test_prefix: test/clt-tests/ae/
skip_if_no_api_keys: true
- name: HTTP interface tests
test_prefix: test/clt-tests/http-interface/
- name: Indexer
Expand Down Expand Up @@ -92,7 +93,19 @@ jobs:
test_prefix: test/clt-tests/vector-knn/

steps:
- uses: manticoresoftware/[email protected]
- name: Check if auto-embeddings tests should be skipped
if: matrix.test-suite.skip_if_no_api_keys == true
run: |
if [ -z "$OPENAI_API_KEY" ] && [ -z "$VOYAGE_API_KEY" ] && [ -z "$JINA_API_KEY" ]; then
echo "SKIP_AE_TESTS=true" >> $GITHUB_ENV
echo "Skipping auto-embeddings tests - no API keys available"
else
echo "SKIP_AE_TESTS=false" >> $GITHUB_ENV
fi

- name: Run CLT tests
if: matrix.test-suite.skip_if_no_api_keys != true || env.SKIP_AE_TESTS != 'true'
uses: manticoresoftware/[email protected]
with:
artifact: ${{ inputs.artifact_name }}
image: ${{ inputs.docker_image }}
Expand All @@ -102,3 +115,7 @@ jobs:
comment_mode: failures
run_args: "-e OPENAI_API_KEY -e VOYAGE_API_KEY -e JINA_API_KEY"
ui_host: "https://clt.manticoresearch.com"

- name: Skip auto-embeddings tests message
if: matrix.test-suite.skip_if_no_api_keys == true && env.SKIP_AE_TESTS == 'true'
run: echo "Auto-embeddings tests were skipped because no API keys (OPENAI_API_KEY, VOYAGE_API_KEY, JINA_API_KEY) are available"
File renamed without changes.