Skip to content

Commit

Permalink
Update K8s Github Actions test
Browse files Browse the repository at this point in the history
  • Loading branch information
lbeckman314 committed Oct 25, 2024
1 parent fbfa3ba commit af435bd
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 7 deletions.
6 changes: 0 additions & 6 deletions .github/workflows/compliance.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,6 @@
# output a ssh address associated with the Github action worker. Helpful for debugging build steps and
# and intermediary files/artifacts.
#
# - name: "Debug: Package dependancies for tmate (CentOS)"
# run: |
# yum install -y xz
# ln -s /bin/true /bin/apt-get
#
# - name: Setup tmate session
# uses: mxschmitt/action-tmate@v3

Expand Down Expand Up @@ -89,4 +84,3 @@ jobs:
pip install -r requirements.txt
python setup.py install
openapi-test-runner report --version "${{ matrix.version }}" --server "http://localhost:8000/"
27 changes: 26 additions & 1 deletion .github/workflows/k8s.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,32 @@ jobs:
- name: Install k3d
run: |
wget -q -O - https://raw.githubusercontent.com/k3d-io/k3d/main/install.sh | bash
# kubectl get nodes
k3d cluster create test-cluster
helm repo add ohsu https://ohsu-comp-bio.github.io/helm-charts
helm upgrade --install funnel ohsu/funnel
kubectl wait --for=condition=Ready pod -l app=funnel
kubectl port-forward svc/funnel 8000:8000 &
- uses: actions/download-artifact@v4
with:
name: funnel

- name: Setup tmate session
uses: mxschmitt/action-tmate@v3

- name: Submit Task
run: |
export PATH="$PATH:$(pwd)"
chmod +x funnel
funnel examples hello-world > hello-world.json
funnel task create hello-world.json
- name: Wait for task to complete
run: |
export PATH="$PATH:$(pwd)"
ID=$(funnel task create hello-world.json)
kubectl wait --for=condition=Succeeded pod -l job-name=$ID
# Exits 0 if the task is complete, otherwise exits 1
funnel task list $ID | grep -q COMPLETE

0 comments on commit af435bd

Please sign in to comment.