Skip to content

Run tests

Run tests #229

Workflow file for this run

name: Run tests
on:
workflow_dispatch:
jobs:
run-http-tests:
runs-on: ubuntu-latest
name: run http tests
env:
ASTRA_DB_APPLICATION_TOKEN: ${{ secrets.ASTRA_DB_APPLICATION_TOKEN }}
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_REGION_NAME: ${{ secrets.AWS_REGION_NAME }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
base_url: ${{ secrets.BASE_URL }}
COHERE_API_KEY: ${{ secrets.COHERE_API_KEY }}
GEMINI_API_KEY: ${{ secrets.GEMINI_API_KEY }}
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
PERPLEXITYAI_API_KEY: ${{ secrets.PERPLEXITYAI_API_KEY }}
ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }}
GROQ_API_KEY: ${{ secrets.GROQ_API_KEY }}
steps:
- name: Git checkout
uses: actions/checkout@v3
- name: Set up Python 3.11.8
uses: actions/setup-python@v2
with:
python-version: '3.11.8'
- name: Install Poetry
run: |
curl -sSL https://install.python-poetry.org | python3 -
- name: Check Poetry Version
run: poetry --version
- name: Configure Poetry to Use Python 3.11.8
run: poetry env use python3.10
- name: get dependencies
run: |
poetry install
- name: run tests
run: |
poetry run pytest --timeout 600 -s --disable-warnings tests/http/
run-async-http-tests:
runs-on: ubuntu-latest
name: run async http tests
env:
ASTRA_DB_APPLICATION_TOKEN: ${{ secrets.ASTRA_DB_APPLICATION_TOKEN }}
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_REGION_NAME: ${{ secrets.AWS_REGION_NAME }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
base_url: ${{ secrets.BASE_URL }}
COHERE_API_KEY: ${{ secrets.COHERE_API_KEY }}
GEMINI_API_KEY: ${{ secrets.GEMINI_API_KEY }}
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
PERPLEXITYAI_API_KEY: ${{ secrets.PERPLEXITYAI_API_KEY }}
ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }}
GROQ_API_KEY: ${{ secrets.GROQ_API_KEY }}
steps:
- name: Git checkout
uses: actions/checkout@v3
- name: Set up Python 3.11.8
uses: actions/setup-python@v2
with:
python-version: '3.11.8'
- name: Install Poetry
run: |
curl -sSL https://install.python-poetry.org | python3 -
- name: Check Poetry Version
run: poetry --version
- name: Configure Poetry to Use Python 3.11.8
run: poetry env use python3.10
- name: get dependencies
run: |
poetry install
- name: run tests
run: |
poetry run pytest --timeout 600 -s --disable-warnings tests/async_http/
run-openai-sdk-test_files:
runs-on: ubuntu-latest
name: run openai-sdk test files
env:
ASTRA_DB_APPLICATION_TOKEN: ${{ secrets.ASTRA_DB_APPLICATION_TOKEN }}
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_REGION_NAME: ${{ secrets.AWS_REGION_NAME }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
base_url: ${{ secrets.BASE_URL }}
COHERE_API_KEY: ${{ secrets.COHERE_API_KEY }}
GEMINI_API_KEY: ${{ secrets.GEMINI_API_KEY }}
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
PERPLEXITYAI_API_KEY: ${{ secrets.PERPLEXITYAI_API_KEY }}
ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }}
GROQ_API_KEY: ${{ secrets.GROQ_API_KEY }}
steps:
- name: Git checkout
uses: actions/checkout@v3
- name: Set up Python 3.11.8
uses: actions/setup-python@v2
with:
python-version: '3.11.8'
- name: Install Poetry
run: |
curl -sSL https://install.python-poetry.org | python3 -
- name: Check Poetry Version
run: poetry --version
- name: Configure Poetry to Use Python 3.11.8
working-directory: ./client
run: poetry env use python3.10
- name: get client dependencies
working-directory: ./client
run: |
poetry install
- name: get server dependencies
run: |
poetry install
- name: run tests
run: |
# Start the server in the background
poetry run python run.py &
SERVER_PID=$!
# Ensure the server is killed on exit
trap 'kill $SERVER_PID' EXIT
# Wait for the server to be ready
sleep 10
# Run the client tests that depend on the server
pushd client
poetry run pytest --timeout 600 -s --disable-warnings tests/openai-sdk/test_files.py
popd
run-openai-sdk-test_assistants_v1:
runs-on: ubuntu-latest
name: run openai-sdk test assistants_v1
env:
ASTRA_DB_APPLICATION_TOKEN: ${{ secrets.ASTRA_DB_APPLICATION_TOKEN }}
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_REGION_NAME: ${{ secrets.AWS_REGION_NAME }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
base_url: ${{ secrets.BASE_URL }}
COHERE_API_KEY: ${{ secrets.COHERE_API_KEY }}
GEMINI_API_KEY: ${{ secrets.GEMINI_API_KEY }}
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
PERPLEXITYAI_API_KEY: ${{ secrets.PERPLEXITYAI_API_KEY }}
ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }}
GROQ_API_KEY: ${{ secrets.GROQ_API_KEY }}
steps:
- name: Git checkout
uses: actions/checkout@v3
- name: Set up Python 3.11.8
uses: actions/setup-python@v2
with:
python-version: '3.11.8'
- name: Install Poetry
run: |
curl -sSL https://install.python-poetry.org | python3 -
- name: Check Poetry Version
run: poetry --version
- name: Configure Poetry to Use Python 3.11.8
working-directory: ./client
run: poetry env use python3.10
- name: get client dependencies
working-directory: ./client
run: |
poetry install
- name: Install dependencies with specific client version
working-directory: ./client
run: |
poetry add openai@1.20.0
- name: get server dependencies
run: |
poetry install
- name: run tests
run: |
# Start the server in the background
poetry run python run.py &
SERVER_PID=$!
# Ensure the server is killed on exit
trap 'kill $SERVER_PID' EXIT
# Wait for the server to be ready
sleep 10
# Run the client tests that depend on the server
pushd client
poetry run pytest --timeout 600 -s --disable-warnings tests/openai-sdk/test_assistants_v1.py
popd
run-openai-sdk-test_assistants_v2:
runs-on: ubuntu-latest
name: run openai-sdk test assistants_v2
env:
ASTRA_DB_APPLICATION_TOKEN: ${{ secrets.ASTRA_DB_APPLICATION_TOKEN }}
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_REGION_NAME: ${{ secrets.AWS_REGION_NAME }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
base_url: ${{ secrets.BASE_URL }}
COHERE_API_KEY: ${{ secrets.COHERE_API_KEY }}
GEMINI_API_KEY: ${{ secrets.GEMINI_API_KEY }}
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
PERPLEXITYAI_API_KEY: ${{ secrets.PERPLEXITYAI_API_KEY }}
ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }}
GROQ_API_KEY: ${{ secrets.GROQ_API_KEY }}
steps:
- name: Git checkout
uses: actions/checkout@v3
- name: Set up Python 3.11.8
uses: actions/setup-python@v2
with:
python-version: '3.11.8'
- name: Install Poetry
run: |
curl -sSL https://install.python-poetry.org | python3 -
- name: Check Poetry Version
run: poetry --version
- name: Configure Poetry to Use Python 3.11.8
working-directory: ./client
run: poetry env use python3.10
- name: get client dependencies
working-directory: ./client
run: |
poetry install
- name: get server dependencies
run: |
poetry install
- name: run tests
run: |
# Start the server in the background
poetry run python run.py &
SERVER_PID=$!
# Ensure the server is killed on exit
trap 'kill $SERVER_PID' EXIT
# Wait for the server to be ready
sleep 10
# Run the client tests that depend on the server
pushd client
poetry run pytest --timeout 600 -s --disable-warnings tests/openai-sdk/test_assistants_v2.py
popd
run-astra-assistants-tests-chat:
runs-on: ubuntu-latest
name: run astra-assistants chat tests
env:
ASTRA_DB_APPLICATION_TOKEN: ${{ secrets.ASTRA_DB_APPLICATION_TOKEN }}
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_REGION_NAME: ${{ secrets.AWS_REGION_NAME }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
base_url: ${{ secrets.BASE_URL }}
COHERE_API_KEY: ${{ secrets.COHERE_API_KEY }}
GEMINI_API_KEY: ${{ secrets.GEMINI_API_KEY }}
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
PERPLEXITYAI_API_KEY: ${{ secrets.PERPLEXITYAI_API_KEY }}
ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }}
GROQ_API_KEY: ${{ secrets.GROQ_API_KEY }}
steps:
- name: Git checkout
uses: actions/checkout@v3
- name: Set up Python 3.11.8
uses: actions/setup-python@v2
with:
python-version: '3.11.8'
- name: Install Poetry
run: |
curl -sSL https://install.python-poetry.org | python3 -
- name: Check Poetry Version
run: poetry --version
- name: Configure Poetry to Use Python 3.11.8
working-directory: ./client
run: poetry env use python3.10
- name: get client dependencies
working-directory: ./client
run: |
poetry install
- name: get server dependencies
run: |
poetry install
- name: run tests
run: |
# Start the server in the background
poetry run python run.py &
SERVER_PID=$!
# Ensure the server is killed on exit
trap 'kill $SERVER_PID' EXIT
# Wait for the server to be ready
sleep 10
# Run the client tests that depend on the server
pushd client
poetry run pytest --timeout 600 -s --disable-warnings tests/astra-assistants/test_chat_completion.py
popd
run-astra-assistants-tests-embedding:
runs-on: ubuntu-latest
name: run astra-assistants embedding tests
env:
ASTRA_DB_APPLICATION_TOKEN: ${{ secrets.ASTRA_DB_APPLICATION_TOKEN }}
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_REGION_NAME: ${{ secrets.AWS_REGION_NAME }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
base_url: ${{ secrets.BASE_URL }}
COHERE_API_KEY: ${{ secrets.COHERE_API_KEY }}
GEMINI_API_KEY: ${{ secrets.GEMINI_API_KEY }}
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
PERPLEXITYAI_API_KEY: ${{ secrets.PERPLEXITYAI_API_KEY }}
ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }}
GROQ_API_KEY: ${{ secrets.GROQ_API_KEY }}
steps:
- name: Git checkout
uses: actions/checkout@v3
- name: Set up Python 3.11.8
uses: actions/setup-python@v2
with:
python-version: '3.11.8'
- name: Install Poetry
run: |
curl -sSL https://install.python-poetry.org | python3 -
- name: Check Poetry Version
run: poetry --version
- name: Configure Poetry to Use Python 3.11.8
working-directory: ./client
run: poetry env use python3.10
- name: get client dependencies
working-directory: ./client
run: |
poetry install
- name: get server dependencies
run: |
poetry install
- name: run tests
run: |
# Start the server in the background
poetry run python run.py &
SERVER_PID=$!
# Ensure the server is killed on exit
trap 'kill $SERVER_PID' EXIT
# Wait for the server to be ready
sleep 10
# Run the client tests that depend on the server
pushd client
poetry run pytest --timeout 600 -s --disable-warnings tests/astra-assistants/test_embedding.py
popd
run-astra-assistants-tests-file-embedding:
runs-on: ubuntu-latest
name: run astra-assistants file embedding tests
env:
ASTRA_DB_APPLICATION_TOKEN: ${{ secrets.ASTRA_DB_APPLICATION_TOKEN }}
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_REGION_NAME: ${{ secrets.AWS_REGION_NAME }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
base_url: ${{ secrets.BASE_URL }}
COHERE_API_KEY: ${{ secrets.COHERE_API_KEY }}
GEMINI_API_KEY: ${{ secrets.GEMINI_API_KEY }}
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
PERPLEXITYAI_API_KEY: ${{ secrets.PERPLEXITYAI_API_KEY }}
ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }}
GROQ_API_KEY: ${{ secrets.GROQ_API_KEY }}
steps:
- name: Git checkout
uses: actions/checkout@v3
- name: Set up Python 3.11.8
uses: actions/setup-python@v2
with:
python-version: '3.11.8'
- name: Install Poetry
run: |
curl -sSL https://install.python-poetry.org | python3 -
- name: Check Poetry Version
run: poetry --version
- name: Configure Poetry to Use Python 3.11.8
working-directory: ./client
run: poetry env use python3.10
- name: get client dependencies
working-directory: ./client
run: |
poetry install
- name: get server dependencies
run: |
poetry install
- name: run tests
run: |
# Start the server in the background
poetry run python run.py &
SERVER_PID=$!
# Ensure the server is killed on exit
trap 'kill $SERVER_PID' EXIT
# Wait for the server to be ready
sleep 10
# Run the client tests that depend on the server
pushd client
poetry run pytest --timeout 600 -s --disable-warnings tests/astra-assistants/test_file_embedding.py
popd
run-streaming-assistants-tests-function-calling_v1:
runs-on: ubuntu-latest
name: run streaming-assistants v1 function calling tests
env:
ASTRA_DB_APPLICATION_TOKEN: ${{ secrets.ASTRA_DB_APPLICATION_TOKEN }}
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_REGION_NAME: ${{ secrets.AWS_REGION_NAME }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
base_url: ${{ secrets.BASE_URL }}
COHERE_API_KEY: ${{ secrets.COHERE_API_KEY }}
GEMINI_API_KEY: ${{ secrets.GEMINI_API_KEY }}
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
PERPLEXITYAI_API_KEY: ${{ secrets.PERPLEXITYAI_API_KEY }}
ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }}
GROQ_API_KEY: ${{ secrets.GROQ_API_KEY }}
steps:
- name: Git checkout
uses: actions/checkout@v3
- name: Set up Python 3.11.8
uses: actions/setup-python@v2
with:
python-version: '3.11.8'
- name: Install Poetry
run: |
curl -sSL https://install.python-poetry.org | python3 -
- name: Check Poetry Version
run: poetry --version
- name: Configure Poetry to Use Python 3.11.8
working-directory: ./client
run: poetry env use python3.10
- name: get client dependencies
working-directory: ./client
run: |
poetry install
- name: Install dependencies with specific client version
working-directory: ./client
run: |
poetry add openai@1.20.0 streaming-assistants@0.15.11
- name: get server dependencies
run: |
poetry install
- name: run tests
run: |
# Start the server in the background
poetry run python run.py &
SERVER_PID=$!
# Ensure the server is killed on exit
trap 'kill $SERVER_PID' EXIT
# Wait for the server to be ready
sleep 10
# Run the client tests that depend on the server
pushd client
poetry run pytest --timeout 600 -s --disable-warnings tests/streaming-assistants/test_function_calling_v1.py
popd
run-streaming-assistants-tests-run_v1:
runs-on: ubuntu-latest
name: run streaming-assistants v1 run tests
env:
ASTRA_DB_APPLICATION_TOKEN: ${{ secrets.ASTRA_DB_APPLICATION_TOKEN }}
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_REGION_NAME: ${{ secrets.AWS_REGION_NAME }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
base_url: ${{ secrets.BASE_URL }}
COHERE_API_KEY: ${{ secrets.COHERE_API_KEY }}
GEMINI_API_KEY: ${{ secrets.GEMINI_API_KEY }}
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
PERPLEXITYAI_API_KEY: ${{ secrets.PERPLEXITYAI_API_KEY }}
ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }}
GROQ_API_KEY: ${{ secrets.GROQ_API_KEY }}
steps:
- name: Git checkout
uses: actions/checkout@v3
- name: Set up Python 3.11.8
uses: actions/setup-python@v2
with:
python-version: '3.11.8'
- name: Install Poetry
run: |
curl -sSL https://install.python-poetry.org | python3 -
- name: Check Poetry Version
run: poetry --version
- name: Configure Poetry to Use Python 3.11.8
working-directory: ./client
run: poetry env use python3.10
- name: get client dependencies
working-directory: ./client
run: |
poetry install
- name: Install dependencies with specific client version
working-directory: ./client
run: |
poetry add openai@1.20.0 streaming-assistants@0.15.11
- name: get server dependencies
run: |
poetry install
- name: run tests
run: |
# Start the server in the background
poetry run python run.py &
SERVER_PID=$!
# Ensure the server is killed on exit
trap 'kill $SERVER_PID' EXIT
# Wait for the server to be ready
sleep 10
# Run the client tests that depend on the server
pushd client
poetry run pytest --timeout 600 -s --disable-warnings tests/streaming-assistants/test_run_v1.py
popd
run-streaming-assistants-tests-run-retrieval_v1:
runs-on: ubuntu-latest
name: run streaming-assistants run retrieval v1 tests
env:
ASTRA_DB_APPLICATION_TOKEN: ${{ secrets.ASTRA_DB_APPLICATION_TOKEN }}
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_REGION_NAME: ${{ secrets.AWS_REGION_NAME }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
base_url: ${{ secrets.BASE_URL }}
COHERE_API_KEY: ${{ secrets.COHERE_API_KEY }}
GEMINI_API_KEY: ${{ secrets.GEMINI_API_KEY }}
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
PERPLEXITYAI_API_KEY: ${{ secrets.PERPLEXITYAI_API_KEY }}
ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }}
GROQ_API_KEY: ${{ secrets.GROQ_API_KEY }}
steps:
- name: Git checkout
uses: actions/checkout@v3
- name: Set up Python 3.11.8
uses: actions/setup-python@v2
with:
python-version: '3.11.8'
- name: Install Poetry
run: |
curl -sSL https://install.python-poetry.org | python3 -
- name: Check Poetry Version
run: poetry --version
- name: Configure Poetry to Use Python 3.11.8
working-directory: ./client
run: poetry env use python3.10
- name: get client dependencies
working-directory: ./client
run: |
poetry install
- name: Install dependencies with specific client version
working-directory: ./client
run: |
poetry add openai@1.20.0 streaming-assistants@0.15.11
- name: get server dependencies
run: |
poetry install
- name: run tests
run: |
# Start the server in the background
poetry run python run.py &
SERVER_PID=$!
# Ensure the server is killed on exit
trap 'kill $SERVER_PID' EXIT
# Wait for the server to be ready
sleep 10
# Run the client tests that depend on the server
pushd client
poetry run pytest --timeout 600 -s --disable-warnings tests/streaming-assistants/test_run_retreival_v1.py
popd
run-streaming-assistants-tests-streaming-run-retrieval_v1:
runs-on: ubuntu-latest
name: run streaming-assistants v1 streaming run retrieval tests
env:
ASTRA_DB_APPLICATION_TOKEN: ${{ secrets.ASTRA_DB_APPLICATION_TOKEN }}
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_REGION_NAME: ${{ secrets.AWS_REGION_NAME }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
base_url: ${{ secrets.BASE_URL }}
COHERE_API_KEY: ${{ secrets.COHERE_API_KEY }}
GEMINI_API_KEY: ${{ secrets.GEMINI_API_KEY }}
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
PERPLEXITYAI_API_KEY: ${{ secrets.PERPLEXITYAI_API_KEY }}
ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }}
GROQ_API_KEY: ${{ secrets.GROQ_API_KEY }}
steps:
- name: Git checkout
uses: actions/checkout@v3
- name: Set up Python 3.11.8
uses: actions/setup-python@v2
with:
python-version: '3.11.8'
- name: Install Poetry
run: |
curl -sSL https://install.python-poetry.org | python3 -
- name: Check Poetry Version
run: poetry --version
- name: Configure Poetry to Use Python 3.11.8
working-directory: ./client
run: poetry env use python3.10
- name: get client dependencies
working-directory: ./client
run: |
poetry install
- name: Install dependencies with specific client version
working-directory: ./client
run: |
poetry add openai@1.20.0 streaming-assistants@0.15.11
- name: get server dependencies
run: |
poetry install
- name: run tests
run: |
# Start the server in the background
poetry run python run.py &
SERVER_PID=$!
# Ensure the server is killed on exit
trap 'kill $SERVER_PID' EXIT
# Wait for the server to be ready
sleep 10
# Run the client tests that depend on the server
pushd client
poetry run pytest --timeout 600 -s --disable-warnings tests/streaming-assistants/test_streaming_run_retrieval_v1.py
popd
run-streaming-assistants-tests-streaming-run_v1:
runs-on: ubuntu-latest
name: run streaming-assistants v1 streaming run tests
env:
ASTRA_DB_APPLICATION_TOKEN: ${{ secrets.ASTRA_DB_APPLICATION_TOKEN }}
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_REGION_NAME: ${{ secrets.AWS_REGION_NAME }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
base_url: ${{ secrets.BASE_URL }}
COHERE_API_KEY: ${{ secrets.COHERE_API_KEY }}
GEMINI_API_KEY: ${{ secrets.GEMINI_API_KEY }}
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
PERPLEXITYAI_API_KEY: ${{ secrets.PERPLEXITYAI_API_KEY }}
ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }}
GROQ_API_KEY: ${{ secrets.GROQ_API_KEY }}
steps:
- name: Git checkout
uses: actions/checkout@v3
- name: Set up Python 3.11.8
uses: actions/setup-python@v2
with:
python-version: '3.11.8'
- name: Install Poetry
run: |
curl -sSL https://install.python-poetry.org | python3 -
- name: Check Poetry Version
run: poetry --version
- name: Configure Poetry to Use Python 3.11.8
working-directory: ./client
run: poetry env use python3.10
- name: get client dependencies
working-directory: ./client
run: |
poetry install
- name: Install dependencies with specific client version
working-directory: ./client
run: |
poetry add openai@1.20.0 streaming-assistants@0.15.11
- name: get server dependencies
run: |
poetry install
- name: run tests
run: |
# Start the server in the background
poetry run python run.py &
SERVER_PID=$!
# Ensure the server is killed on exit
trap 'kill $SERVER_PID' EXIT
# Wait for the server to be ready
sleep 10
# Run the client tests that depend on the server
pushd client
poetry run pytest --timeout 600 -s --disable-warnings tests/streaming-assistants/test_streaming_run_v1.py
popd
run-streaming-assistants-tests-streaming-run-function-calling_v1:
runs-on: ubuntu-latest
name: run streaming-assistants v1 streaming run function calling tests
env:
ASTRA_DB_APPLICATION_TOKEN: ${{ secrets.ASTRA_DB_APPLICATION_TOKEN }}
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_REGION_NAME: ${{ secrets.AWS_REGION_NAME }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
base_url: ${{ secrets.BASE_URL }}
COHERE_API_KEY: ${{ secrets.COHERE_API_KEY }}
GEMINI_API_KEY: ${{ secrets.GEMINI_API_KEY }}
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
PERPLEXITYAI_API_KEY: ${{ secrets.PERPLEXITYAI_API_KEY }}
ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }}
GROQ_API_KEY: ${{ secrets.GROQ_API_KEY }}
steps:
- name: Git checkout
uses: actions/checkout@v3
- name: Set up Python 3.11.8
uses: actions/setup-python@v2
with:
python-version: '3.11.8'
- name: Install Poetry
run: |
curl -sSL https://install.python-poetry.org | python3 -
- name: Check Poetry Version
run: poetry --version
- name: Configure Poetry to Use Python 3.11.8
working-directory: ./client
run: poetry env use python3.10
- name: get client dependencies
working-directory: ./client
run: |
poetry install
- name: Install dependencies with specific client version
working-directory: ./client
run: |
poetry add openai@1.20.0 streaming-assistants@0.15.11
- name: get server dependencies
run: |
poetry install
- name: run tests
run: |
# Start the server in the background
poetry run python run.py &
SERVER_PID=$!
# Ensure the server is killed on exit
trap 'kill $SERVER_PID' EXIT
# Wait for the server to be ready
sleep 10
# Run the client tests that depend on the server
pushd client
poetry run pytest --timeout 600 -s --disable-warnings tests/streaming-assistants/test_streaming_run_function_calling_v1.py
popd
run-streaming-assistants-tests-threads-v1:
runs-on: ubuntu-latest
name: run streaming-assistants v1 threads tests
env:
ASTRA_DB_APPLICATION_TOKEN: ${{ secrets.ASTRA_DB_APPLICATION_TOKEN }}
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_REGION_NAME: ${{ secrets.AWS_REGION_NAME }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
base_url: ${{ secrets.BASE_URL }}
COHERE_API_KEY: ${{ secrets.COHERE_API_KEY }}
GEMINI_API_KEY: ${{ secrets.GEMINI_API_KEY }}
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
PERPLEXITYAI_API_KEY: ${{ secrets.PERPLEXITYAI_API_KEY }}
ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }}
GROQ_API_KEY: ${{ secrets.GROQ_API_KEY }}
steps:
- name: Git checkout
uses: actions/checkout@v3
- name: Set up Python 3.11.8
uses: actions/setup-python@v2
with:
python-version: '3.11.8'
- name: Install Poetry
run: |
curl -sSL https://install.python-poetry.org | python3 -
- name: Check Poetry Version
run: poetry --version
- name: Configure Poetry to Use Python 3.11.8
working-directory: ./client
run: poetry env use python3.10
- name: get client dependencies
working-directory: ./client
run: |
poetry install
- name: Install dependencies with specific client version
working-directory: ./client
run: |
poetry add openai@1.20.0 streaming-assistants@0.15.11
- name: get server dependencies
run: |
poetry install
- name: run tests
run: |
# Start the server in the background
poetry run python run.py &
SERVER_PID=$!
# Ensure the server is killed on exit
trap 'kill $SERVER_PID' EXIT
# Wait for the server to be ready
sleep 10
# Run the client tests that depend on the server
pushd client
poetry run pytest --timeout 600 -s --disable-warnings tests/streaming-assistants/test_threads_v1.py
popd
run-streaming-assistants-tests-auto-tool-call-v1:
runs-on: ubuntu-latest
name: run streaming-assistants v1 test auto tool_call
env:
ASTRA_DB_APPLICATION_TOKEN: ${{ secrets.ASTRA_DB_APPLICATION_TOKEN }}
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_REGION_NAME: ${{ secrets.AWS_REGION_NAME }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
base_url: ${{ secrets.BASE_URL }}
COHERE_API_KEY: ${{ secrets.COHERE_API_KEY }}
GEMINI_API_KEY: ${{ secrets.GEMINI_API_KEY }}
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
PERPLEXITYAI_API_KEY: ${{ secrets.PERPLEXITYAI_API_KEY }}
ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }}
GROQ_API_KEY: ${{ secrets.GROQ_API_KEY }}
steps:
- name: Git checkout
uses: actions/checkout@v3
- name: Set up Python 3.11.8
uses: actions/setup-python@v2
with:
python-version: '3.11.8'
- name: Install Poetry
run: |
curl -sSL https://install.python-poetry.org | python3 -
- name: Check Poetry Version
run: poetry --version
- name: Configure Poetry to Use Python 3.11.8
working-directory: ./client
run: poetry env use python3.10
- name: get client dependencies
working-directory: ./client
run: |
poetry install
- name: Install dependencies with specific client version
working-directory: ./client
run: |
poetry add openai@1.20.0 streaming-assistants@0.15.11
- name: get server dependencies
run: |
poetry install
- name: run tests
run: |
# Start the server in the background
poetry run python run.py &
SERVER_PID=$!
# Ensure the server is killed on exit
trap 'kill $SERVER_PID' EXIT
# Wait for the server to be ready
sleep 10
# Run the client tests that depend on the server
pushd client
poetry run pytest --timeout 600 -s --disable-warnings tests/streaming-assistants/test_auto_tool_call_v1.py
popd
run-astra-assistants-tests-run_v2:
runs-on: ubuntu-latest
name: run astra-assistants v2 run tests
env:
ASTRA_DB_APPLICATION_TOKEN: ${{ secrets.ASTRA_DB_APPLICATION_TOKEN }}
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_REGION_NAME: ${{ secrets.AWS_REGION_NAME }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
base_url: ${{ secrets.BASE_URL }}
COHERE_API_KEY: ${{ secrets.COHERE_API_KEY }}
GEMINI_API_KEY: ${{ secrets.GEMINI_API_KEY }}
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
PERPLEXITYAI_API_KEY: ${{ secrets.PERPLEXITYAI_API_KEY }}
ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }}
GROQ_API_KEY: ${{ secrets.GROQ_API_KEY }}
steps:
- name: Git checkout
uses: actions/checkout@v3
- name: Set up Python 3.11.8
uses: actions/setup-python@v2
with:
python-version: '3.11.8'
- name: Install Poetry
run: |
curl -sSL https://install.python-poetry.org | python3 -
- name: Check Poetry Version
run: poetry --version
- name: Configure Poetry to Use Python 3.11.8
working-directory: ./client
run: poetry env use python3.10
- name: get client dependencies
working-directory: ./client
run: |
poetry install
- name: get server dependencies
run: |
poetry install
- name: run tests
run: |
# Start the server in the background
poetry run python run.py &
SERVER_PID=$!
# Ensure the server is killed on exit
trap 'kill $SERVER_PID' EXIT
# Wait for the server to be ready
sleep 10
# Run the client tests that depend on the server
pushd client
poetry run pytest --timeout 600 -s --disable-warnings tests/astra-assistants/test_threads_v2.py
popd
run-astra-assistants-tests-run_retrieval_v2:
runs-on: ubuntu-latest
name: run astra-assistants v2 run retrieval tests
env:
ASTRA_DB_APPLICATION_TOKEN: ${{ secrets.ASTRA_DB_APPLICATION_TOKEN }}
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_REGION_NAME: ${{ secrets.AWS_REGION_NAME }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
base_url: ${{ secrets.BASE_URL }}
COHERE_API_KEY: ${{ secrets.COHERE_API_KEY }}
GEMINI_API_KEY: ${{ secrets.GEMINI_API_KEY }}
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
PERPLEXITYAI_API_KEY: ${{ secrets.PERPLEXITYAI_API_KEY }}
ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }}
GROQ_API_KEY: ${{ secrets.GROQ_API_KEY }}
steps:
- name: Git checkout
uses: actions/checkout@v3
- name: Set up Python 3.11.8
uses: actions/setup-python@v2
with:
python-version: '3.11.8'
- name: Install Poetry
run: |
curl -sSL https://install.python-poetry.org | python3 -
- name: Check Poetry Version
run: poetry --version
- name: Configure Poetry to Use Python 3.11.8
working-directory: ./client
run: poetry env use python3.10
- name: get client dependencies
working-directory: ./client
run: |
poetry install
- name: get server dependencies
run: |
poetry install
- name: run tests
run: |
# Start the server in the background
poetry run python run.py &
SERVER_PID=$!
# Ensure the server is killed on exit
trap 'kill $SERVER_PID' EXIT
# Wait for the server to be ready
sleep 10
# Run the client tests that depend on the server
pushd client
poetry run pytest --timeout 600 -s --disable-warnings tests/astra-assistants/test_run_retreival_v2.py
popd
run-astra-assistants-tests-function_calling_v2:
runs-on: ubuntu-latest
name: run astra-assistants v2 function calling tests
env:
ASTRA_DB_APPLICATION_TOKEN: ${{ secrets.ASTRA_DB_APPLICATION_TOKEN }}
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_REGION_NAME: ${{ secrets.AWS_REGION_NAME }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
base_url: ${{ secrets.BASE_URL }}
COHERE_API_KEY: ${{ secrets.COHERE_API_KEY }}
GEMINI_API_KEY: ${{ secrets.GEMINI_API_KEY }}
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
PERPLEXITYAI_API_KEY: ${{ secrets.PERPLEXITYAI_API_KEY }}
ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }}
GROQ_API_KEY: ${{ secrets.GROQ_API_KEY }}
steps:
- name: Git checkout
uses: actions/checkout@v3
- name: Set up Python 3.11.8
uses: actions/setup-python@v2
with:
python-version: '3.11.8'
- name: Install Poetry
run: |
curl -sSL https://install.python-poetry.org | python3 -
- name: Check Poetry Version
run: poetry --version
- name: Configure Poetry to Use Python 3.11.8
working-directory: ./client
run: poetry env use python3.10
- name: get client dependencies
working-directory: ./client
run: |
poetry install
- name: get server dependencies
run: |
poetry install
- name: run tests
run: |
# Start the server in the background
poetry run python run.py &
SERVER_PID=$!
# Ensure the server is killed on exit
trap 'kill $SERVER_PID' EXIT
# Wait for the server to be ready
sleep 10
# Run the client tests that depend on the server
pushd client
poetry run pytest --timeout 600 -s --disable-warnings tests/astra-assistants/test_function_calling_v2.py
popd
run-astra-assistants-tests-streaming-run-function_calling_async_v2:
runs-on: ubuntu-latest
name: run astra-assistants v2 streaming run function calling async tests
env:
ASTRA_DB_APPLICATION_TOKEN: ${{ secrets.ASTRA_DB_APPLICATION_TOKEN }}
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_REGION_NAME: ${{ secrets.AWS_REGION_NAME }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
base_url: ${{ secrets.BASE_URL }}
COHERE_API_KEY: ${{ secrets.COHERE_API_KEY }}
GEMINI_API_KEY: ${{ secrets.GEMINI_API_KEY }}
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
PERPLEXITYAI_API_KEY: ${{ secrets.PERPLEXITYAI_API_KEY }}
ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }}
GROQ_API_KEY: ${{ secrets.GROQ_API_KEY }}
steps:
- name: Git checkout
uses: actions/checkout@v3
- name: Set up Python 3.11.8
uses: actions/setup-python@v2
with:
python-version: '3.11.8'
- name: Install Poetry
run: |
curl -sSL https://install.python-poetry.org | python3 -
- name: Check Poetry Version
run: poetry --version
- name: Configure Poetry to Use Python 3.11.8
working-directory: ./client
run: poetry env use python3.10
- name: get client dependencies
working-directory: ./client
run: |
poetry install
- name: get server dependencies
run: |
poetry install
- name: run tests
run: |
# Start the server in the background
poetry run python run.py &
SERVER_PID=$!
# Ensure the server is killed on exit
trap 'kill $SERVER_PID' EXIT
# Wait for the server to be ready
sleep 10
# Run the client tests that depend on the server
pushd client
poetry run pytest --timeout 600 -s --disable-warnings tests/astra-assistants/test_streaming_run_function_calling_async_v2.py
popd
run-astra-assistants-tests-streaming_run_v2:
runs-on: ubuntu-latest
name: run astra-assistants v2 streaming run tests
env:
ASTRA_DB_APPLICATION_TOKEN: ${{ secrets.ASTRA_DB_APPLICATION_TOKEN }}
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_REGION_NAME: ${{ secrets.AWS_REGION_NAME }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
base_url: ${{ secrets.BASE_URL }}
COHERE_API_KEY: ${{ secrets.COHERE_API_KEY }}
GEMINI_API_KEY: ${{ secrets.GEMINI_API_KEY }}
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
PERPLEXITYAI_API_KEY: ${{ secrets.PERPLEXITYAI_API_KEY }}
ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }}
GROQ_API_KEY: ${{ secrets.GROQ_API_KEY }}
steps:
- name: Git checkout
uses: actions/checkout@v3
- name: Set up Python 3.11.8
uses: actions/setup-python@v2
with:
python-version: '3.11.8'
- name: Install Poetry
run: |
curl -sSL https://install.python-poetry.org | python3 -
- name: Check Poetry Version
run: poetry --version
- name: Configure Poetry to Use Python 3.11.8
working-directory: ./client
run: poetry env use python3.10
- name: get client dependencies
working-directory: ./client
run: |
poetry install
- name: get server dependencies
run: |
poetry install
- name: run tests
run: |
# Start the server in the background
poetry run python run.py &
SERVER_PID=$!
# Ensure the server is killed on exit
trap 'kill $SERVER_PID' EXIT
# Wait for the server to be ready
sleep 10
# Run the client tests that depend on the server
pushd client
poetry run pytest --timeout 600 -s --disable-warnings tests/astra-assistants/test_streaming_run_v2.py
popd
run-astra-assistants-tests-streaming_run_retrieval_v2:
runs-on: ubuntu-latest
name: run astra-assistants v2 streaming run retrieval tests
env:
ASTRA_DB_APPLICATION_TOKEN: ${{ secrets.ASTRA_DB_APPLICATION_TOKEN }}
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_REGION_NAME: ${{ secrets.AWS_REGION_NAME }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
base_url: ${{ secrets.BASE_URL }}
COHERE_API_KEY: ${{ secrets.COHERE_API_KEY }}
GEMINI_API_KEY: ${{ secrets.GEMINI_API_KEY }}
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
PERPLEXITYAI_API_KEY: ${{ secrets.PERPLEXITYAI_API_KEY }}
ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }}
GROQ_API_KEY: ${{ secrets.GROQ_API_KEY }}
steps:
- name: Git checkout
uses: actions/checkout@v3
- name: Set up Python 3.11.8
uses: actions/setup-python@v2
with:
python-version: '3.11.8'
- name: Install Poetry
run: |
curl -sSL https://install.python-poetry.org | python3 -
- name: Check Poetry Version
run: poetry --version
- name: Configure Poetry to Use Python 3.11.8
working-directory: ./client
run: poetry env use python3.10
- name: get client dependencies
working-directory: ./client
run: |
poetry install
- name: get server dependencies
run: |
poetry install
- name: run tests
run: |
# Start the server in the background
poetry run python run.py &
SERVER_PID=$!
# Ensure the server is killed on exit
trap 'kill $SERVER_PID' EXIT
# Wait for the server to be ready
sleep 10
# Run the client tests that depend on the server
pushd client
poetry run pytest --timeout 600 -s --disable-warnings tests/astra-assistants/test_streaming_run_retrieval_v2.py
popd
run-astra-assistants-tests-streaming_run_retrieval_async_v2:
runs-on: ubuntu-latest
name: run astra-assistants v2 streaming run retrieval async tests
env:
ASTRA_DB_APPLICATION_TOKEN: ${{ secrets.ASTRA_DB_APPLICATION_TOKEN }}
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_REGION_NAME: ${{ secrets.AWS_REGION_NAME }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
base_url: ${{ secrets.BASE_URL }}
COHERE_API_KEY: ${{ secrets.COHERE_API_KEY }}
GEMINI_API_KEY: ${{ secrets.GEMINI_API_KEY }}
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
PERPLEXITYAI_API_KEY: ${{ secrets.PERPLEXITYAI_API_KEY }}
ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }}
GROQ_API_KEY: ${{ secrets.GROQ_API_KEY }}
steps:
- name: Git checkout
uses: actions/checkout@v3
- name: Set up Python 3.11.8
uses: actions/setup-python@v2
with:
python-version: '3.11.8'
- name: Install Poetry
run: |
curl -sSL https://install.python-poetry.org | python3 -
- name: Check Poetry Version
run: poetry --version
- name: Configure Poetry to Use Python 3.11.8
working-directory: ./client
run: poetry env use python3.10
- name: get client dependencies
working-directory: ./client
run: |
poetry install
- name: get server dependencies
run: |
poetry install
- name: run tests
run: |
# Start the server in the background
poetry run python run.py &
SERVER_PID=$!
# Ensure the server is killed on exit
trap 'kill $SERVER_PID' EXIT
# Wait for the server to be ready
sleep 10
# Run the client tests that depend on the server
pushd client
poetry run pytest --timeout 600 -s --disable-warnings tests/astra-assistants/test_streaming_run_retrieval_async_v2.py
popd
run-astra-assistants-tests-streaming_run_function_calling_v2:
runs-on: ubuntu-latest
name: run astra-assistants v2 streaming run function calling tests
env:
ASTRA_DB_APPLICATION_TOKEN: ${{ secrets.ASTRA_DB_APPLICATION_TOKEN }}
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_REGION_NAME: ${{ secrets.AWS_REGION_NAME }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
base_url: ${{ secrets.BASE_URL }}
COHERE_API_KEY: ${{ secrets.COHERE_API_KEY }}
GEMINI_API_KEY: ${{ secrets.GEMINI_API_KEY }}
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
PERPLEXITYAI_API_KEY: ${{ secrets.PERPLEXITYAI_API_KEY }}
ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }}
GROQ_API_KEY: ${{ secrets.GROQ_API_KEY }}
steps:
- name: Git checkout
uses: actions/checkout@v3
- name: Set up Python 3.11.8
uses: actions/setup-python@v2
with:
python-version: '3.11.8'
- name: Install Poetry
run: |
curl -sSL https://install.python-poetry.org | python3 -
- name: Check Poetry Version
run: poetry --version
- name: Configure Poetry to Use Python 3.11.8
working-directory: ./client
run: poetry env use python3.10
- name: get client dependencies
working-directory: ./client
run: |
poetry install
- name: get server dependencies
run: |
poetry install
- name: run tests
run: |
# Start the server in the background
poetry run python run.py &
SERVER_PID=$!
# Ensure the server is killed on exit
trap 'kill $SERVER_PID' EXIT
# Wait for the server to be ready
sleep 10
# Run the client tests that depend on the server
pushd client
poetry run pytest --timeout 600 -s --disable-warnings tests/astra-assistants/test_streaming_run_function_calling_v2.py
popd
run-astra-assistants-tests-auto_tool_call_v2:
runs-on: ubuntu-latest
name: run astra-assistants v2 auto tool call tests
env:
ASTRA_DB_APPLICATION_TOKEN: ${{ secrets.ASTRA_DB_APPLICATION_TOKEN }}
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_REGION_NAME: ${{ secrets.AWS_REGION_NAME }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
base_url: ${{ secrets.BASE_URL }}
COHERE_API_KEY: ${{ secrets.COHERE_API_KEY }}
GEMINI_API_KEY: ${{ secrets.GEMINI_API_KEY }}
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
PERPLEXITYAI_API_KEY: ${{ secrets.PERPLEXITYAI_API_KEY }}
ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }}
GROQ_API_KEY: ${{ secrets.GROQ_API_KEY }}
steps:
- name: Git checkout
uses: actions/checkout@v3
- name: Set up Python 3.11.8
uses: actions/setup-python@v2
with:
python-version: '3.11.8'
- name: Install Poetry
run: |
curl -sSL https://install.python-poetry.org | python3 -
- name: Check Poetry Version
run: poetry --version
- name: Configure Poetry to Use Python 3.11.8
working-directory: ./client
run: poetry env use python3.10
- name: get client dependencies
working-directory: ./client
run: |
poetry install
- name: get server dependencies
run: |
poetry install
- name: run tests
run: |
# Start the server in the background
poetry run python run.py &
SERVER_PID=$!
# Ensure the server is killed on exit
trap 'kill $SERVER_PID' EXIT
# Wait for the server to be ready
sleep 10
# Run the client tests that depend on the server
pushd client
poetry run pytest --timeout 600 -s --disable-warnings tests/astra-assistants/test_auto_tool_call_v2.py
popd
run-data-api-tools-tests:
runs-on: ubuntu-latest
name: run data api tools tests
env:
ASTRA_DB_APPLICATION_TOKEN: ${{ secrets.ASTRA_DB_APPLICATION_TOKEN }}
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_REGION_NAME: ${{ secrets.AWS_REGION_NAME }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
base_url: ${{ secrets.BASE_URL }}
COHERE_API_KEY: ${{ secrets.COHERE_API_KEY }}
GEMINI_API_KEY: ${{ secrets.GEMINI_API_KEY }}
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
PERPLEXITYAI_API_KEY: ${{ secrets.PERPLEXITYAI_API_KEY }}
ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }}
GROQ_API_KEY: ${{ secrets.GROQ_API_KEY }}
E2B_API_KEY: ${{ secrets.E2B_API_KEY }}
steps:
- name: Git checkout
uses: actions/checkout@v3
- name: Set up Python 3.11.8
uses: actions/setup-python@v2
with:
python-version: '3.11.8'
- name: Install Poetry
run: |
curl -sSL https://install.python-poetry.org | python3 -
- name: Check Poetry Version
run: poetry --version
- name: Configure Poetry to Use Python 3.11.8
working-directory: ./client
run: poetry env use python3.10
- name: get client dependencies
working-directory: ./client
run: |
poetry install --extras tools
- name: get server dependencies
run: |
poetry install
- name: run tests
run: |
# Start the server in the background
poetry run python run.py &
SERVER_PID=$!
# Ensure the server is killed on exit
trap 'kill $SERVER_PID' EXIT
# Wait for the server to be ready
sleep 10
# Run the client tests that depend on the server
pushd client
poetry run pytest --timeout 600 -s --disable-warnings tests/tools/test_astra_data_api.py
popd
run-data-code-interpreter-tools-tests:
runs-on: ubuntu-latest
name: run code interpreter tools tests
env:
ASTRA_DB_APPLICATION_TOKEN: ${{ secrets.ASTRA_DB_APPLICATION_TOKEN }}
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_REGION_NAME: ${{ secrets.AWS_REGION_NAME }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
base_url: ${{ secrets.BASE_URL }}
COHERE_API_KEY: ${{ secrets.COHERE_API_KEY }}
GEMINI_API_KEY: ${{ secrets.GEMINI_API_KEY }}
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
PERPLEXITYAI_API_KEY: ${{ secrets.PERPLEXITYAI_API_KEY }}
ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }}
GROQ_API_KEY: ${{ secrets.GROQ_API_KEY }}
E2B_API_KEY: ${{ secrets.E2B_API_KEY }}
steps:
- name: Git checkout
uses: actions/checkout@v3
- name: Set up Python 3.11.8
uses: actions/setup-python@v2
with:
python-version: '3.11.8'
- name: Install Poetry
run: |
curl -sSL https://install.python-poetry.org | python3 -
- name: Check Poetry Version
run: poetry --version
- name: Configure Poetry to Use Python 3.11.8
working-directory: ./client
run: poetry env use python3.10
- name: get client dependencies
working-directory: ./client
run: |
poetry install --extras tools
- name: get server dependencies
run: |
poetry install
- name: run tests
run: |
# Start the server in the background
poetry run python run.py &
SERVER_PID=$!
# Ensure the server is killed on exit
trap 'kill $SERVER_PID' EXIT
# Wait for the server to be ready
sleep 10
# Run the client tests that depend on the server
pushd client
poetry run pytest --timeout 600 -s --disable-warnings tests/tools/test_code_interpreter.py
popd
run-lsp-tools-tests:
runs-on: ubuntu-latest
name: run lsp tools tests
env:
ASTRA_DB_APPLICATION_TOKEN: ${{ secrets.ASTRA_DB_APPLICATION_TOKEN }}
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_REGION_NAME: ${{ secrets.AWS_REGION_NAME }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
base_url: ${{ secrets.BASE_URL }}
COHERE_API_KEY: ${{ secrets.COHERE_API_KEY }}
GEMINI_API_KEY: ${{ secrets.GEMINI_API_KEY }}
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
PERPLEXITYAI_API_KEY: ${{ secrets.PERPLEXITYAI_API_KEY }}
ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }}
GROQ_API_KEY: ${{ secrets.GROQ_API_KEY }}
E2B_API_KEY: ${{ secrets.E2B_API_KEY }}
steps:
- name: Git checkout
uses: actions/checkout@v3
- name: Set up Python 3.11.8
uses: actions/setup-python@v2
with:
python-version: '3.11.8'
- name: Install Poetry
run: |
curl -sSL https://install.python-poetry.org | python3 -
- name: Check Poetry Version
run: poetry --version
- name: Configure Poetry to Use Python 3.11.8
working-directory: ./client
run: poetry env use python3.10
- name: get client dependencies
working-directory: ./client
run: |
poetry install --extras tools
- name: get server dependencies
run: |
poetry install
- name: run tests
run: |
# Start the server in the background
poetry run python run.py &
SERVER_PID=$!
# Ensure the server is killed on exit
trap 'kill $SERVER_PID' EXIT
# Wait for the server to be ready
sleep 10
# Run the client tests that depend on the server
pushd client
poetry run pytest --timeout 600 -s --disable-warnings tests/tools/test_lsp_session.py
popd
run-structured-code-tools-tests:
runs-on: ubuntu-latest
name: run structured code tools tests
env:
ASTRA_DB_APPLICATION_TOKEN: ${{ secrets.ASTRA_DB_APPLICATION_TOKEN }}
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_REGION_NAME: ${{ secrets.AWS_REGION_NAME }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
base_url: ${{ secrets.BASE_URL }}
COHERE_API_KEY: ${{ secrets.COHERE_API_KEY }}
GEMINI_API_KEY: ${{ secrets.GEMINI_API_KEY }}
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
PERPLEXITYAI_API_KEY: ${{ secrets.PERPLEXITYAI_API_KEY }}
ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }}
GROQ_API_KEY: ${{ secrets.GROQ_API_KEY }}
E2B_API_KEY: ${{ secrets.E2B_API_KEY }}
steps:
- name: Git checkout
uses: actions/checkout@v3
- name: Set up Python 3.11.8
uses: actions/setup-python@v2
with:
python-version: '3.11.8'
- name: Install Poetry
run: |
curl -sSL https://install.python-poetry.org | python3 -
- name: Check Poetry Version
run: poetry --version
- name: Configure Poetry to Use Python 3.11.8
working-directory: ./client
run: poetry env use python3.10
- name: get client dependencies
working-directory: ./client
run: |
poetry install --extras tools
- name: get server dependencies
run: |
poetry install
- name: run tests
run: |
# Start the server in the background
poetry run python run.py &
SERVER_PID=$!
# Ensure the server is killed on exit
trap 'kill $SERVER_PID' EXIT
# Wait for the server to be ready
sleep 10
# Run the client tests that depend on the server
pushd client
poetry run pytest --timeout 600 -s --disable-warnings tests/tools/test_structured_code.py
popd