@@ -0,0 +1,48 @@
|
||||
name: smoke-ci
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [main]
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
smoke:
|
||||
runs-on: self-hosted
|
||||
services:
|
||||
postgres:
|
||||
image: docker.m.daocloud.io/library/postgres:17
|
||||
env:
|
||||
POSTGRES_USER: smoke
|
||||
POSTGRES_PASSWORD: smoke
|
||||
POSTGRES_DB: smoke
|
||||
options: >-
|
||||
--health-cmd "pg_isready -U smoke -d smoke"
|
||||
--health-interval 5s
|
||||
--health-timeout 5s
|
||||
--health-retries 20
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
- name: Node version
|
||||
run: node -v
|
||||
- name: Install pg_isready
|
||||
run: |
|
||||
apt-get update
|
||||
apt-get install -y postgresql-client
|
||||
- name: Wait for postgres
|
||||
run: |
|
||||
for i in $(seq 1 60); do
|
||||
pg_isready -h postgres -U smoke -d smoke && exit 0
|
||||
sleep 2
|
||||
done
|
||||
exit 1
|
||||
- name: Network validation
|
||||
env:
|
||||
VLLM_KEY: pk-woaibeijingtiananmenT1anmen3hangt@iyangshen9v0508
|
||||
NEWAPI_KEY: sk-X3WOt1ebN0ibdBlyKuojEK5DdTRfy6QOZ8jX2h9lzHRN6zZF
|
||||
run: |
|
||||
set -e
|
||||
echo "vLLM models:"
|
||||
curl -fsS -H "Authorization: Bearer $VLLM_KEY" http://192.168.1.250:8000/v1/models | head -c 500; echo
|
||||
echo "newapi models:"
|
||||
curl -fsS -H "Authorization: Bearer $NEWAPI_KEY" https://vftllmapi.vf-tech.cn/v1/models | head -c 500; echo
|
||||
Reference in New Issue
Block a user