GuidesIntegrations
Integrating CoreValue with GitHub Actions
Automate the monitoring and caching of LLM calls in your CI pipelines with CoreValue.
IMPORTANT NOTICE
Utilizing Man-In-The-Middle software like this involves significant security and performance risks. Please refer to tools/mitm-proxy for detailed information and ensure you fully comprehend the scripts before incorporating this into your CI pipeline.
Github Actions with Ubuntu/Debian
Maximize the capabilities of CoreValue by integrating it into your CI pipelines. This guide provides instructions on how to incorporate CoreValue into your Github Actions workflows.
Setup
Incorporate the following steps into your Github Actions workflow:
- Add the proxy to your workflow:
curl -s https://raw.githubusercontent.com/CoreValue/corevalue/main/mitmproxy.sh | bash -s start- Set your ENV variables:
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
COVA_API_KEY: ${{ secrets.COVA_API_KEY }}
REQUESTS_CA_BUNDLE: /etc/ssl/certs/ca-certificates.crt
COREVALUE_CACHE_ENABLED: "true"
COREVALUE_PROPERTY_<KEY>: <VALUE>Variables can also be set within your test. For more information, refer to the mitm docs.
Example
# ...Rest of yml
tests:
steps:
- name: Execute OpenAI tests
run: |
curl -s https://raw.githubusercontent.com/CoreValue/corevalue/main/mitmproxy.sh | bash -s start
# Execute your tests here
env:
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
COVA_API_KEY: ${{ secrets.COVA_API_KEY }}
REQUESTS_CA_BUNDLE: /etc/ssl/certs/ca-certificates.crt
COREVALUE_CACHE_ENABLED: "true"
COREVALUE_PROPERTY_<KEY>: <VALUE>