Loading...
Discovering amazing AI tools

This FAQ contains a comprehensive step-by-step guide to help you achieve your goal efficiently.
Yes, you can integrate Promptfoo with your existing CI/CD pipeline using its official GitHub Action integrations. This feature allows you to seamlessly incorporate automated tests and evaluations into your workflows, enhancing your development process and ensuring quality at every stage.
Integrating Promptfoo into your CI/CD pipeline is straightforward due to its official GitHub Action support. Here’s how you can do it:
Set Up GitHub Actions: First, ensure that you have a GitHub repository for your project. Navigate to the "Actions" tab and create a new workflow by selecting a template or starting from scratch.
Add Promptfoo Action: Include the following code snippet in your workflow file (e.g., .github/workflows/ci.yml):
name: CI
on: [push]
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v2
- name: Run Promptfoo Tests
uses: promptfoo/promptfoo-action@v1
with:
api-token: ${{ secrets.PROMPTFOO_API_TOKEN }}
Make sure to replace PROMPTFOO_API_TOKEN with your actual API token stored in your GitHub secrets.
Customize Evaluations: You can customize the tests and evaluations you want Promptfoo to run based on your project needs. This flexibility allows you to tailor the integration for different stages of your development lifecycle.
Monitor Results: After each push, your GitHub Actions will execute the tests, and you can monitor the results directly in your repository. This visibility helps maintain high code quality and speeds up the development process.
By following these guidelines, you can effectively integrate Promptfoo into your CI/CD pipeline, enhancing your development workflow and ensuring robust quality assurance practices.
: Automate testing and evaluation within your CI/CD pipeline. -...
: First, ensure that you have a GitHub repository for your project. Navigate to the "Actions" tab and create a new workf...
: You can customize the tests and evaluations you want Promptfoo to run based on your project needs. This flexibility al...
: Always store sensitive information like API tokens in GitHub Secrets for security. -...