Skip to content

chore: clean up workflow file #352

chore: clean up workflow file

chore: clean up workflow file #352

Workflow file for this run

# REF: https://docs.github.com/en/actions/using-github-hosted-runners/about-github-hosted-runners
name: Deploy Dev
on:
push:
branches:
- fastchat-t5-3b-ct2
jobs:
deploy-dev:
runs-on: ubuntu-latest
env:
MODAL_TOKEN_ID: ${{ secrets.MODAL_TOKEN_ID }}
MODAL_TOKEN_SECRET: ${{ secrets.MODAL_TOKEN_SECRET }}
MODEL: /lmsys/fastchat-t5-3b-ct2
steps:
- name: Checkout own repo
uses: actions/checkout@v3
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: "3.10"
- name: Install Python packages
run: |
pip install modal-client pydantic fastapi
- name: Deploy FastAPI app
run: cd ${{ github.ref_name }};modal deploy fastapi_app.py
- name: Test FastAPI app
run: "pwd;cd ${{ github.ref_name }};curl -X POST -H 'Content-Type: application/json' -d @prompt.json ${{ secrets.FASTCHAT_T5_3B_APP_URL }}"