CI/CD Integration Tutorial
Easily run Coval evaluations directly from your GitHub repository with customizable inputs.
Quick Guide: Setting Up GitHub Actions
Set up Manual Workflow
Create the Workflow File
-
Navigate to
.github/workflows/
in your repository. -
Create a new file named
run_coval_evaluation.yml
. -
Paste the following content:
Learn more about about how to set up the config
settings in monitoring section.
Add Your Coval API Key
-
Go to your repository’s Settings > Secrets and variables > Actions.
-
Click New repository secret.
-
Name it
COVAL_API_KEY
and paste your Coval API key.
Run the Workflow
-
Navigate to the Actions tab in your repository.
-
Select Run Coval Evaluation.
-
Click Run workflow.
-
Enter the required inputs:
-
organization_id: Your Coval organization ID.
-
dataset_id: The dataset ID for evaluation.
-
test_set_name: Name of the Test Set to evaluate.
-
config: Configuration parameters in JSON string format.
-
(Optional) created_by: Specify the creator if needed.
-
Click Run workflow to start the evaluation and check the results.
Set up Automatic GitHub Action
This workflow is configured to run an evaluation automatically on every pull request on main
.
Similar to previous section, follow steps 1 - 2 and trigger automatically our workflow.
Important Notes
-
Configuration JSON: Ensure your
config
input is a valid JSON string. -
Secrets: Your
COVAL_API_KEY
is securely stored and accessed via${{ secrets.COVAL_API_KEY }}
. -
External Workflow: The action uses a predefined workflow from
coval-ai/coval-github-actions
.
Need Help?
If you have any questions or need assistance, please contact our support team.