-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: experiment with reusable actions for llama e2e test
- Loading branch information
Showing
4 changed files
with
63 additions
and
37 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
name: setup-lfai-core | ||
description: "Setup Supabase and LFAI-API" | ||
|
||
runs: | ||
using: composite | ||
steps: | ||
- name: Deploy Supabase | ||
shell: bash | ||
run: | | ||
make build-supabase LOCAL_VERSION=e2e-test | ||
docker image prune -af | ||
uds zarf tools kubectl create namespace leapfrogai | ||
uds zarf package deploy packages/supabase/zarf-package-supabase-amd64-e2e-test.tar.zst --confirm | ||
rm packages/supabase/zarf-package-supabase-amd64-e2e-test.tar.zst | ||
- name: Set environment variable | ||
shell: bash | ||
id: set-env-var | ||
run: | | ||
echo "ANON_KEY=$(uds zarf tools kubectl get secret supabase-bootstrap-jwt -n leapfrogai -o jsonpath='{.data.anon-key}' | base64 -d)" >> "$GITHUB_ENV" |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
name: setup-python | ||
description: "Setup Python and library dependencies" | ||
|
||
runs: | ||
using: composite | ||
steps: | ||
- name: Setup Python | ||
uses: actions/setup-python@0a5c61591373683505ea898e09a3ea4f39ef2b9c #v5.0.0 | ||
with: | ||
python-version-file: 'pyproject.toml' | ||
|
||
- name: Install Python Deps | ||
run: python -m pip install ".[dev]" | ||
shell: bash |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
name: setup-uds | ||
description: "Setup UDS Cluster" | ||
|
||
inputs: | ||
registry1Username: | ||
description: Registry1 Username | ||
registry1Password: | ||
description: Registry1 Password | ||
|
||
runs: | ||
using: composite | ||
steps: | ||
- name: Setup UDS Environment | ||
uses: defenseunicorns/uds-common/.github/actions/setup@05f42bb3117b66ebef8c72ae050b34bce19385f5 | ||
with: | ||
username: ${{ inputs.registry1Username }} | ||
password: ${{ inputs.registry1Password }} | ||
|
||
- name: Create UDS Cluster | ||
shell: bash | ||
run: | | ||
uds deploy k3d-core-slim-dev:0.22.2 --confirm |
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