GitHub Actions
Learn how to integrate Galtea’s evaluation capabilities into your GitHub Actions workflow
Initial Setup
To initialize the Galtea
class, you need to provide your API key obtained in the settings page of the Galtea platform.
Before you can use GitHub Actions with Galtea, you need to perform some credentials and variables configuration:
- 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 a requirements.txt
file in your repository and add the dependencies required for your project. At minimum, you’ll need galtea library:
Create your GitHub Action
Create a .github/workflows/evaluate.yml
file in your repository with the following content:
Create your Test Script
Create a evaluate.py
file in your repository with the following content:
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.