Prompts
Prompt CI/CD Integration
Learn how to integrate prompt evaluations into your CI/CD pipeline using GitHub Actions
Automate your prompt evaluations by integrating them into your CI/CD pipeline. This guide shows you how to use GitHub Actions with the Maxim Actions repository to run prompt tests automatically.
GitHub Actions Setup
The Maxim Actions repository provides a pre-built GitHub Action that makes it easy to run test runs in your CI/CD pipeline.
Prerequisites
Before setting up the GitHub Action, you’ll need to setup the following:
- GitHub Secrets: Store your Maxim API key securely
- GitHub Variables: Configure your workspace and resource IDs
- Prompt Version ID: The specific prompt version you want to test
Environment Setup
Add these secrets and variables to your GitHub repository:
Secrets (Repository Settings → Secrets and variables → Actions):
MAXIM_API_KEY
: Your Maxim API key
Variables (Repository Settings → Secrets and variables → Actions):
WORKSPACE_ID
: Your Maxim workspace IDDATASET_ID
: The dataset to use for testingPROMPT_VERSION_ID
: The prompt version ID to test
Complete GitHub Actions Workflow
Create a file .github/workflows/prompt-evaluation.yml
in your repository:
Next Steps
- Local Prompt Testing - Test prompts with custom logic locally
- Maxim Prompt Testing - Use prompts stored on the Maxim platform
- Querying Prompts - Retrieve and use prompts in production