Unverified Commit 76e59088 authored by Ying Sheng's avatar Ying Sheng Committed by GitHub
Browse files

Add more unit tests to CI (#880)

parent 12ce3bef
name: PR E2E Test
name: E2E Test
on:
push:
branches: [ main ]
paths:
- "python/sglang/**"
- "test/**"
pull_request:
branches: [ main ]
paths:
- "python/sglang/**"
- "test/**"
workflow_dispatch:
concurrency:
group: pr-e2e-test-${{ github.ref }}
group: e2e-test-${{ github.ref }}
cancel-in-progress: true
jobs:
......@@ -29,6 +31,7 @@ jobs:
- name: Install dependencies
run: |
cd /data/zhyncs/venv && source ./bin/activate && cd -
pip cache purge
pip install --upgrade pip
pip install -e "python[all]"
......
......@@ -21,6 +21,9 @@ jobs:
unit-test:
runs-on: self-hosted
env:
HF_TOKEN : ${{ secrets.HF_TOKEN }}
steps:
- name: Checkout code
uses: actions/checkout@v3
......@@ -49,3 +52,10 @@ jobs:
cd test/lang
python3 test_srt_backend.py
- name: Test OpenAI API Server
run: |
cd /data/zhyncs/venv && source ./bin/activate && cd -
cd test/srt
python3 test_openai_server.py
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment