Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
55 changes: 55 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
name: CI

on:
push:
branches: [main, feature/v0.1]
pull_request:

jobs:
backend:
runs-on: ubuntu-latest
defaults:
run:
working-directory: backend
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.11"
- name: Install
run: |
python -m venv .venv
. .venv/bin/activate
pip install -r requirements.txt
- name: Unit tests
run: |
. .venv/bin/activate
python -m pytest tests -v
- name: Evals (stub mode)
run: |
. .venv/bin/activate
cd .. && python -m pytest evals -v

frontend:
runs-on: ubuntu-latest
defaults:
run:
working-directory: frontend
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: "18"
- name: Install
run: npm install
- name: Build (tsc + vite)
run: npm run build

deploy-image:
runs-on: ubuntu-latest
needs: [backend, frontend]
if: github.ref == 'refs/heads/main'
steps:
- uses: actions/checkout@v4
- name: Build backend deploy image
run: docker build -f deploy/Dockerfile -t demo-agent-backend:ci .
11 changes: 11 additions & 0 deletions frontend/Dockerfile.frontend
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Dev image for the demo-agent frontend (Vite).
# Source is bind-mounted by docker-compose, so deps are installed at runtime
# into the /app/node_modules anonymous volume (populated on first start).
FROM node:18-alpine

WORKDIR /app

# Install dev/build tooling ahead of time; node_modules comes up at runtime.
EXPOSE 5173

CMD ["sh", "-c", "npm install && npm run dev -- --host 0.0.0.0 --port 5173"]
Loading