Skip to content

Commit 60b83d6

Browse files
committed
修复 ci uv sync aiofiles 下载失败
1 parent 509c031 commit 60b83d6

File tree

2 files changed

+528
-498
lines changed

2 files changed

+528
-498
lines changed

.github/workflows/ci.yml

Lines changed: 31 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
enable-cache: true
3030

3131
- name: Install dependencies
32-
run: uv sync --all-extras
32+
run: uv sync --all-extras --index-url https://pypi.org/simple
3333

3434
- name: Ruff lint
3535
run: uv run ruff check src tests scripts
@@ -42,3 +42,33 @@ jobs:
4242

4343
- name: Pytest
4444
run: uv run pytest
45+
46+
frontend:
47+
name: Frontend Checks
48+
runs-on: ubuntu-latest
49+
50+
steps:
51+
- name: Checkout
52+
uses: actions/checkout@v4
53+
54+
- name: Setup Node.js
55+
uses: actions/setup-node@v4
56+
with:
57+
node-version: "20"
58+
cache: "pnpm"
59+
cache-dependency-path: frontend/pnpm-lock.yaml
60+
61+
- name: Setup pnpm
62+
uses: pnpm/action-setup@v4
63+
64+
- name: Install frontend dependencies
65+
run: pnpm --prefix frontend install --frozen-lockfile
66+
67+
- name: Frontend lint
68+
run: pnpm --prefix frontend lint
69+
70+
- name: Frontend typecheck
71+
run: pnpm --prefix frontend typecheck
72+
73+
- name: Frontend build
74+
run: pnpm --prefix frontend build

0 commit comments

Comments
 (0)