commit 0e0444a1c1d5ced9c1b5b8abb5f244020df08f0f Author: Gitea Setup Bot Date: Sat Jul 4 09:31:29 2026 +0000 Add smoke CI workflow diff --git a/.gitea/workflows/smoke.yml b/.gitea/workflows/smoke.yml new file mode 100644 index 0000000..926177a --- /dev/null +++ b/.gitea/workflows/smoke.yml @@ -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 diff --git a/README.md b/README.md new file mode 100644 index 0000000..ad9b629 --- /dev/null +++ b/README.md @@ -0,0 +1,3 @@ +# smoke-ci + +Gitea Actions smoke validation repository.