Skip to content
This repository has been archived by the owner on Feb 15, 2025. It is now read-only.

Commit

Permalink
move tests from one workflow to the other
Browse files Browse the repository at this point in the history
  • Loading branch information
jalling97 committed Jul 22, 2024
1 parent ddde5f2 commit fd6f255
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 34 deletions.
11 changes: 10 additions & 1 deletion .github/workflows/e2e-1.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: e2e_tests_1
name: e2e-1
on:
pull_request:
types:
Expand Down Expand Up @@ -137,3 +137,12 @@ jobs:
- name: Cleanup UI
run: |
uds zarf package remove leapfrogai-ui --confirm
##########
# vLLM
# NOTE: We are not deploying and testing vLLM in this workflow because it requires a GPU
# : This workflow simply verifies that the vLLM package can be built
##########
- name: Build vLLM
run: |
make build-vllm LOCAL_VERSION=e2e-test
51 changes: 18 additions & 33 deletions .github/workflows/e2e-2.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: e2e_tests_2
name: e2e-2
on:
pull_request:
types:
Expand Down Expand Up @@ -71,27 +71,21 @@ jobs:
run: |
uds deploy k3d-core-slim-dev:0.22.2 --confirm
# ##########
# # Supabase
# ##########
# - name: Deploy Supabase
# 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
# 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"

# - name: Test Supabase
# run: |
# python -m pip install requests
# python -m pytest ./tests/e2e/test_supabase.py -v
##########
# Supabase
##########
- name: Deploy Supabase
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
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"
##########
# API
Expand Down Expand Up @@ -157,16 +151,7 @@ jobs:
run: |
uds zarf package remove whisper -l=trace --confirm
# # This cleanup may need to be moved/removed when other packages depend on Supabase
# - name: Cleanup Supabase
# run: |
# uds zarf package remove supabase -l=trace --confirm

##########
# vLLM
# NOTE: We are not deploying and testing vLLM in this workflow because it requires a GPU
# : This workflow simply verifies that the vLLM package can be built
##########
- name: Build vLLM
# This cleanup may need to be moved/removed when other packages depend on Supabase
- name: Cleanup Supabase
run: |
make build-vllm LOCAL_VERSION=e2e-test
uds zarf package remove supabase -l=trace --confirm

0 comments on commit fd6f255

Please sign in to comment.