release 0.1.26 #132
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Lint, Test, Install Charts | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
workflow_dispatch: | |
jobs: | |
lint-test: | |
name: "Lint and Test Helm Charts" | |
runs-on: | |
labels: helm-charts-runner | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Set up Helm | |
uses: azure/setup-helm@v3 | |
with: | |
version: v3.14.4 | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: '3.11.8' | |
check-latest: true | |
- name: Set up chart-testing | |
uses: helm/[email protected] | |
- name: Lint | |
id: lint-charts | |
run: | | |
ct lint \ | |
--target-branch ${{ github.event.repository.default_branch }} \ | |
--validate-maintainers=false \ | |
--check-version-increment=false | |
- name: Setup helm unittest | |
id: setup-helm-unittest | |
run: helm plugin install https://github.com/helm-unittest/helm-unittest | |
- name: Run Unit Test | |
id: unit-test-charts | |
run: | | |
helm unittest ./charts/llamacloud | |
install-test: | |
name: "Install Helm Charts" | |
needs: [lint-test] | |
runs-on: | |
labels: helm-charts-runner | |
strategy: | |
matrix: | |
k8s-version: | |
# Limit testing because tests can take a while to run | |
# Ref: https://hub.docker.com/r/kindest/node/tags | |
- v1.28.13 | |
- v1.30.4 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Create kind cluster | |
uses: helm/[email protected] | |
with: | |
node_image: kindest/node:${{ matrix.k8s-version }} | |
- name: Set up chart-testing | |
uses: helm/[email protected] | |
- name: Test | |
id: test-charts | |
env: | |
LLAMACLOUD_LICENSE_KEY: ${{ secrets.LLAMACLOUD_LICENSE_KEY }} | |
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }} | |
OIDC_DISCOVERY_URL: ${{ secrets.OIDC_DISCOVERY_URL }} | |
OIDC_CLIENT_ID: ${{ secrets.OIDC_CLIENT_ID }} | |
OIDC_CLIENT_SECRET: ${{ secrets.OIDC_CLIENT_SECRET }} | |
run: | | |
ct install --target-branch ${{ github.event.repository.default_branch }} \ | |
--helm-extra-set-args \ | |
"--set=global.config.licenseKey=$LLAMACLOUD_LICENSE_KEY \ | |
--set=backend.config.oidc.discoveryUrl=$OIDC_DISCOVERY_URL \ | |
--set=backend.config.oidc.clientId=$OIDC_CLIENT_ID \ | |
--set=backend.config.oidc.clientSecret=$OIDC_CLIENT_SECRET \ | |
--set=backend.config.openAiApiKey=$OPENAI_API_KEY \ | |
--set=llamaParse.config.openAiApiKey=$OPENAI_API_KEY \ | |
--timeout 900s" |