Prerequisites
Get Your API Key
Navigate to your Coval dashboard and generate an API key from Settings.
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
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
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
agent_id | string | Yes | - | Agent to test (22 chars) |
persona_id | string | Yes | - | Simulated persona (22 chars) |
test_set_id | string | Yes | - | Test set with test cases (8 chars) |
metric_ids | JSON array | No | Agent defaults | Metric IDs to evaluate (22 chars each) |
iteration_count | integer | No | 1 | Runs per test case (1-10) |
concurrency | integer | No | 1 | Concurrent simulations (1-5) |
metadata | JSON object | No | {} | Custom metadata for tracking |
max_wait_time | integer | No | 600 | Max wait time in seconds |
check_interval | integer | No | 30 | Status check interval in seconds |
Outputs
| Output | Type | Description |
|---|---|---|
run_id | string | Unique run identifier |
status | string | Final status (COMPLETED, FAILED, etc.) |
run_url | string | Dashboard URL to view results |
Environment Variables
| Variable | Required | Description |
|---|---|---|
COVAL_API_KEY | Yes | Your Coval API key |
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
| Status | Description |
|---|---|
PENDING | Waiting to start |
IN QUEUE | Queued for execution |
IN PROGRESS | Running test cases |
COMPLETED | Successfully completed |
FAILED | Run failed |
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.

