update readme #22
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Hyperion CI | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| jobs: | |
| gateway: | |
| name: Gateway CI | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Go | |
| uses: actions/setup-go@v5 | |
| with: | |
| go-version: '1.22' | |
| - name: Generate test secrets | |
| run: | | |
| echo "CACHE_MASTER_SECRET=$(openssl rand -hex 32)" >> "$GITHUB_ENV" | |
| - name: Build Gateway | |
| run: cd gateway && go build -v ./cmd/server/main.go | |
| - name: Run Gateway Tests | |
| run: cd gateway && go test -v ./... | |
| dashboard: | |
| name: Dashboard CI | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Node | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: '18' | |
| - name: Install Dependencies | |
| run: cd dashboard && npm install | |
| - name: Build Dashboard | |
| run: cd dashboard && npm run build | |
| python-microservices: | |
| name: Python CI | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: '3.10' | |
| - name: Install Linting Tools | |
| run: pip install flake8 black ruff | |
| - name: Lint Python Code | |
| run: | | |
| ruff check . | |
| black --check . | |
| - name: Install Deps | |
| run: | | |
| for dir in predictor embedder intelligence; do | |
| if [ -f "$dir/requirements.txt" ]; then | |
| cd $dir && pip install -r requirements.txt && cd .. | |
| fi | |
| done | |
| - name: Smoke Check (Syntax) | |
| run: | | |
| python -m py_compile predictor/*.py embedder/*.py intelligence/*.py | |
| sdk-python: | |
| name: SDK Python CI | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: '3.9' | |
| - name: Install build tool | |
| run: pip install build | |
| - name: Build Package | |
| run: cd sdk/python && python -m build | |
| sdk-typescript: | |
| name: SDK TypeScript CI | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Node | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: '20' | |
| - name: Install Dependencies | |
| run: cd sdk/typescript && npm install | |
| - name: Build Package | |
| run: cd sdk/typescript && npm run build |