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 aevaluate.py
file in your repository with the following content:
evaluate.py
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.