Files
wehub-resource-sync 35c9fb2445
CI Pipeline / code-quality (push) Waiting to run
CI Pipeline / test (macos-latest, 3.10) (push) Blocked by required conditions
CI Pipeline / test (macos-latest, 3.11) (push) Blocked by required conditions
CI Pipeline / test (macos-latest, 3.12) (push) Blocked by required conditions
CI Pipeline / test (macos-latest, 3.13) (push) Blocked by required conditions
CI Pipeline / test (ubuntu-latest, 3.10) (push) Blocked by required conditions
CI Pipeline / test (ubuntu-latest, 3.11) (push) Blocked by required conditions
CI Pipeline / test (ubuntu-latest, 3.12) (push) Blocked by required conditions
CI Pipeline / test (ubuntu-latest, 3.13) (push) Blocked by required conditions
CI Pipeline / test (windows-latest, 3.10) (push) Blocked by required conditions
CI Pipeline / test (windows-latest, 3.11) (push) Blocked by required conditions
CI Pipeline / test (windows-latest, 3.12) (push) Blocked by required conditions
CI Pipeline / test (windows-latest, 3.13) (push) Blocked by required conditions
chore: import upstream snapshot with attribution
2026-07-13 13:32:40 +08:00
..

RagaAI Catalyst Test Suite

Description
This test suite validates the functionality of RagaAI Catalyst using pytest. It includes:

  • Unit tests for core components
  • Integration tests for key workflows
  • Tests different LLM provider
  • Automated test reporting capabilities

Setup Conda Environment

  1. Create the Conda environment from the provided environment.yml:

    conda env create -f 'tests/environment.yml'
    
    
  2. Activate the environment:

    conda activate ragaai_pytest_env  # Replace `ragaai_pytest_env` with the environment name from the YAML file
    
    

Setup the Keys

Put these keys in the .env file

#OpenAI
OPENAI_API_KEY=''

#Anthropic
ANTHROPIC_API_KEY=''

#Groq
GROQ_API_KEY=''

#Azure
AZURE_OPENAI_ENDPOINT=''
AZURE_OPENAI_API_KEY=''
AZURE_OPENAI_API_VERSION=''

#Google
GOOGLE_API_KEY=''

#Gemini
GEMINI_API_KEY=''

#Vertex AI Setup
PROJECT_NAME=''
LOCATION=''

# RagaAI
RAGAAI_CATALYST_BASE_URL=https://catalyst.raga.ai/api # use this url only
RAGAAI_CATALYST_ACCESS_KEY=''
RAGAAI_CATALYST_SECRET_KEY=''
RAGAAI_PROJECT_NAME=prompt_metric_dataset # use this dataset only
RAGAAI_DATASET_NAME=pytest_dataset

# Other APIs
TAVILY_API_KEY=''
SERPERDEV_API_KEY=''

Running Tests

  1. Run Tests Individually with Pytest Execute tests one by one and visualize pass/fail/error status:

    python -m pytest tests
    
    
  2. Run All Tests and Generate Report To run all tests and generate a comprehensive report:

    python 'tests/run_pytest_and_print_and_save_results.py'
    

    Table_Result