From 5a6999d7461093103ff2db30ec1bd0bb16e0e1fe Mon Sep 17 00:00:00 2001 From: Liyu Xiao Date: Wed, 14 May 2025 15:40:08 -0400 Subject: [PATCH] added workflow.yaml --- .riahub/workflows/workflow.yaml | 82 +++++++++++++++++++++++++++++++++ 1 file changed, 82 insertions(+) create mode 100644 .riahub/workflows/workflow.yaml diff --git a/.riahub/workflows/workflow.yaml b/.riahub/workflows/workflow.yaml new file mode 100644 index 0000000..086775f --- /dev/null +++ b/.riahub/workflows/workflow.yaml @@ -0,0 +1,82 @@ +name: RIA Hub Workflow Demo +on: + push: + branches: [main] + pull_request: + branches: [main] + + +jobs: + ria-demo: + runs-on: ubuntu-latest-2080 + + + steps: + - name: Print GPU information + run: | + if command -v nvidia-smi &> /dev/null; then + echo "✅ NVIDIA GPU is available" + nvidia-smi + else + echo "⚠️ No NVIDIA GPU found" + fi + + + - name: Checkout code + uses: actions/checkout@v4 + with: + lfs: true + + + - name: Set up Python + uses: actions/setup-python@v4 + with: + python-version: "3.9" + + + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install -r requirements.txt + + + - name: 1. Build Dataset + run: | + echo "building dataset" + # Placeholder: implement conversion from raw .npy recordings → train/val sets + + + - name: 2. Train Model + run: | + echo "training model" + # Placeholder: train your model, save best checkpoint + + + - name: 3. Build inference app + run: | + echo "building inference app" + # Placeholder: export a CLI or server into dist/ + + + - name: Upload Dataset Artifacts + uses: actions/upload-artifact@v3 + with: + name: ria-dataset + path: data/** + + + - name: Upload Checkpoints + uses: actions/upload-artifact@v3 + with: + name: ria-checkpoints + path: checkpoints/** + + + - name: Upload Inference App + uses: actions/upload-artifact@v3 + with: + name: ria-demo-app + path: dist/** + + +