From ddf0b331c321739a376ceecf5a54f0af171cac34 Mon Sep 17 00:00:00 2001 From: snowy-yang <102860110+snowy-yang@users.noreply.github.com> Date: Tue, 29 Sep 2026 20:38:02 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A7=BB=E9=99=A4=20CI=EF=BC=88Gitea=20runner?= =?UTF-8?q?=20=E5=B7=B2=E5=BC=83=E7=94=A8=EF=BC=8C=E4=B8=BB=E5=BA=93?= =?UTF-8?q?=E8=BF=81=E7=A7=BB=20GitHub=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitea/workflows/test.yml | 42 --------------------------------------- 1 file changed, 42 deletions(-) delete mode 100644 .gitea/workflows/test.yml diff --git a/.gitea/workflows/test.yml b/.gitea/workflows/test.yml deleted file mode 100644 index df53e4d..0000000 --- a/.gitea/workflows/test.yml +++ /dev/null @@ -1,42 +0,0 @@ -name: test - -on: - push: - branches: [main] - pull_request: - workflow_dispatch: - -jobs: - pytest: - runs-on: ubuntu-latest - services: - postgres: - image: postgres:17-alpine - env: - POSTGRES_PASSWORD: ci - POSTGRES_DB: xiaonuan_ci - options: >- - --health-cmd "pg_isready -U postgres" - --health-interval 5s - --health-timeout 3s - --health-retries 10 - ports: - - 5432:5432 - env: - PG_DSN: postgresql://postgres:ci@postgres:5432/xiaonuan_ci - steps: - - name: 拉代码 - uses: actions/checkout@v4 - - - name: 装 Python 3.14 - uses: actions/setup-python@v5 - with: - python-version: "3.14" - - - name: 安装 uv 并同步依赖 - run: | - pip install uv - uv sync - - - name: 跑测试(含 PG 集成) - run: uv run pytest -q