Initial Setup
To initialize the
Galtea class, you need to provide your API key obtained in the settings page of the Galtea platform.- Configure Repository Secrets and Variables
- Go to your repository’s “Settings” tab
- Navigate to “Secrets and variables” > “Actions”
- Add the following:
- Secret:
GALTEA_API_KEY- Your Galtea API key - Variable:
GALTEA_PRODUCT_ID- Your Galtea Product ID
- Secret:
- Click “Add” after each entry
Dependencies
Create arequirements.txt file in your repository and add the dependencies required for your project. At minimum, you’ll need galtea library:
requirements.txt
Create your GitHub Action
Create a.github/workflows/evaluate.yml file in your repository with the following content:
.github/workflows/evaluate.yml
Create your Test Script
Create anevaluate.py file in your repository with the following content.
You give galtea.evaluations.run(version_id=..., agent=my_agent) one thing: a Python function that calls your agent. From there it does the whole evaluation in one call. It finds the Specifications of your product, resolves their linked Datasets and Metrics, calls my_agent once per Test Case inside this CI job, and submits the answers for scoring. Your agent does not need to be deployed anywhere, so this also works as a pre-deploy gate.
run() discovers work through specifications, so each one needs both its metrics and a dataset linked. A specification missing either is skipped silently, and the run evaluates nothing. That setup is done once (see Writing Specifications), not on every CI run. If you need per-test-case control instead, see Run Dataset-Based Evaluations.Success! 🎉 Your GitHub Actions workflow is now configured to run evaluations with Galtea. Each time you push changes, it will automatically evaluate your product using the latest version of your code.