Prerequisites
1
Get Your API Key
Navigate to your Coval dashboard and generate an API key from Settings.
2
Add GitHub Secret
- Go to your repository Settings > Secrets and variables > Actions
- Click New repository secret
- Name:
COVAL_API_KEY - Value: Your Coval API key
3
Gather Required IDs
You’ll need the following identifiers:
- Agent ID (22 chars): Found in Agents page → Select agent → Copy ID
- Persona ID (22 chars): Found in Personas page → Select persona → Copy ID
- Test Set ID (8 chars): Found in Test Sets page → Select test set → Copy ID
- Metric IDs (22 chars each, optional): Found in Metrics page → Click metric → Copy ID
Quick Start
Automatic PR Checks
Create.github/workflows/coval-eval.yml:
Manual Workflow Dispatch
Create.github/workflows/manual-eval.yml:
- Navigate to Actions tab
- Select Manual Evaluation
- Click Run workflow
- Enter your IDs and click Run workflow
Advanced Configuration
Custom Metrics and Options
Using Outputs
Configuration Reference
Inputs
Outputs
Environment Variables
API Details
The action uses the Coval v1 Runs API:Launch Run
Endpoint:POST https://api.coval.dev/v1/runs
Request:
Monitor Run
Endpoint:GET https://api.coval.dev/v1/runs/{run_id}
Response:
Run Statuses
Examples
Environment-Based Testing
Parallel Persona Testing
Scheduled Regression Testing
Troubleshooting
Invalid API Key
COVAL_API_KEY is set correctly in GitHub Secrets.
Invalid Agent ID
Validation Errors
Timeout
Solution: Increasemax_wait_time for larger test sets or check the Coval dashboard for run status.