Skip to content

feat: add agents/ YAML configs and top-level env field #57

feat: add agents/ YAML configs and top-level env field

feat: add agents/ YAML configs and top-level env field #57

Workflow file for this run

name: Integration
on:
push:
branches: [main]
pull_request:
permissions:
contents: read
jobs:
local:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version-file: go.mod
- name: Install bats
run: sudo apt-get install -y bats
- name: Install openshell
run: curl -LsSf https://raw.githubusercontent.com/NVIDIA/OpenShell/main/install.sh | sh
- name: Wait for gateway
run: |
for i in $(seq 1 30); do
openshell inference get &>/dev/null && break
sleep 1
done
openshell gateway list
- name: Run CI local
run: make ci-local
- name: Export gateway logs
if: always()
run: |
mkdir -p /tmp/gateway-logs
journalctl --user -u openshell-gateway --no-pager > /tmp/gateway-logs/gateway.log 2>/dev/null || true
openshell status > /tmp/gateway-logs/status.txt 2>&1 || true
openshell gateway list > /tmp/gateway-logs/gateways.txt 2>&1 || true
- uses: actions/upload-artifact@v4
if: always()
with:
name: gateway-logs-local
path: /tmp/gateway-logs/
kind:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version-file: go.mod
- name: Install bats
run: sudo apt-get install -y bats
- name: Install openshell
run: curl -LsSf https://raw.githubusercontent.com/NVIDIA/OpenShell/main/install.sh | sh
- uses: helm/kind-action@v1
with:
cluster_name: openshell
- name: Install helm
uses: azure/setup-helm@v4
- name: Run CI kind
run: make ci-kind
- name: Export logs
if: always()
run: |
mkdir -p /tmp/kind-logs
kubectl -n openshell logs statefulset/openshell > /tmp/kind-logs/gateway.log 2>/dev/null || true
kubectl -n openshell get all > /tmp/kind-logs/resources.txt 2>&1 || true
openshell gateway list > /tmp/kind-logs/gateways.txt 2>&1 || true
- uses: actions/upload-artifact@v4
if: always()
with:
name: gateway-logs-kind
path: /tmp/kind-logs/