Skip to content

added CI

added CI #4

Workflow file for this run

name: PR Test
on:
pull_request:
branches: [ main ]
workflow_dispatch:
concurrency:
group: pr-test-${{ github.ref }}
cancel-in-progress: true
jobs:
unit-test:
if: (github.repository == 'sgl-project/SpecForge' || github.event_name == 'pull_request') &&
github.event.pull_request.draft == false
runs-on: [self-hosted]
container:
image: lmsysorg/sglang:dev
options: --gpus "device=6,7" --shm-size=2g --rm -v /dev/shm
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install dependencies
run: |
uv pip install -e .
- name: Run test
timeout-minutes: 10
run: |
python -m unittest discover ./tests