Files
dsp/.github/workflows/ci.yml
T
dsp ac962a91fe DSP 双端短视频平台:Android + Web(Django/DRF + Vue3 + Channels)
- 后端 12 模块:用户/视频/评论/消息/搜索/历史/访客/日志/音乐/通知/审核/创作者
- JWT 双 token + /accounts/refresh 无感续期(双端共用)
- Web 端 Vue3+TS+Vite:沉浸 feed/评论/搜索/私信 WS/上传/通知中心/个人主页
- Android Kotlin+Compose:平台标识头 + 401 单飞刷新
- 部署:docker compose(nginx 网关 SPA+API+WS+媒体),已上线 192.168.5.7:19000
- 测试:pytest 19 用例(含 WS 回归)+ Playwright 冒烟脚本
2026-09-10 20:42:49 +08:00

41 lines
1.1 KiB
YAML

name: CI
on:
push:
pull_request:
jobs:
backend:
runs-on: ubuntu-latest
defaults:
run:
working-directory: dsp/backend
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: Install deps
run: |
pip install "Django>=5.2,<5.3" "djangorestframework>=3.15,<3.16" "adrf>=0.1.9" \
"psycopg[binary]>=3.2,<4.0" "redis>=5.0,<6.0" "channels>=4.1,<5.0" "channels-redis>=4.2" \
"daphne>=4.1" "django-cors-headers>=4.4" "django-redis>=5.4" "Pillow>=10.4" \
"python-decouple>=3.8" "argon2-cffi>=23.1" "PyJWT>=2.9" \
"pytest" "pytest-asyncio" "pytest-django" "httpx"
- name: Tests (DSP_TEST=1, zero external deps)
run: DSP_TEST=1 python -m pytest tests/ -q
web:
runs-on: ubuntu-latest
defaults:
run:
working-directory: dsp/web
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
- run: npm ci
- run: npx vue-tsc -b
- run: npm run build