examples/integration-github-action/README.md
You can run this example with:
npx promptfoo@latest init --example integration-github-action
cd integration-github-action
This folder contains a standalone GitHub Action that runs promptfoo when a pull request modifies prompts.
OPENAI_API_KEY - Get from OpenAI API keys pageANTHROPIC_API_KEY - Get from Anthropic Console (optional)OPENAI_API_KEY with your OpenAI API key as the valueEdit standalone-action.yaml as needed and add it to your repository's .github/workflows/ directory. The action will automatically run when pull requests modify prompt files.
When triggered, the action will: