Skip to content

Commit 877aa95

Browse files
committed
ci(docs+tests) Bootstrap pnpm + Node for sphinx-vite-builder source build
why: While gp-sphinx-family deps resolve from the improved-defaults-reprs branch via [tool.uv.sources], uv builds gp-furo-theme from source — its PEP 517 backend is sphinx-vite-builder, which runs pnpm install + vite build at install time. CI runners have no pnpm/Node, so the install fails. Revert this and the uv.sources block once gp-sphinx>=0.0.1a18 publishes. what: - tests.yml: add pnpm/action-setup@v6 + setup-node@v6 before each uv sync step (build job, release job) - docs.yml: same, gated on env.PUBLISH == 'true' to mirror the surrounding steps
1 parent 9b0a367 commit 877aa95

2 files changed

Lines changed: 44 additions & 0 deletions

File tree

.github/workflows/docs.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,22 @@ jobs:
5151
if: env.PUBLISH == 'true'
5252
run: uv python install ${{ matrix.python-version }}
5353

54+
# [DO NOT MERGE] pnpm + Node bootstrap for sphinx-vite-builder source build
55+
# of gp-furo-theme — required while gp-sphinx-family deps resolve from the
56+
# improved-defaults-reprs branch (see [tool.uv.sources]). Revert with the
57+
# uv.sources block when gp-sphinx>=0.0.1a18 lands.
58+
- name: Install pnpm
59+
if: env.PUBLISH == 'true'
60+
uses: pnpm/action-setup@v6
61+
with:
62+
version: 10
63+
- name: Set up Node
64+
if: env.PUBLISH == 'true'
65+
uses: actions/setup-node@v6
66+
with:
67+
node-version: 22
68+
cache: pnpm
69+
5470
- name: Install dependencies [w/ docs]
5571
if: env.PUBLISH == 'true'
5672
run: uv sync --all-extras --dev

.github/workflows/tests.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,20 @@ jobs:
3333
print("libtmux Server:", server)
3434
'
3535
36+
# [DO NOT MERGE] pnpm + Node bootstrap for sphinx-vite-builder source build
37+
# of gp-furo-theme — required while gp-sphinx-family deps resolve from the
38+
# improved-defaults-reprs branch (see [tool.uv.sources]). Revert with the
39+
# uv.sources block when gp-sphinx>=0.0.1a18 lands.
40+
- name: Install pnpm
41+
uses: pnpm/action-setup@v6
42+
with:
43+
version: 10
44+
- name: Set up Node
45+
uses: actions/setup-node@v6
46+
with:
47+
node-version: 22
48+
cache: pnpm
49+
3650
- name: Install dependencies
3751
run: uv sync --all-extras --dev
3852

@@ -111,6 +125,20 @@ jobs:
111125
- name: Set up Python ${{ matrix.python-version }}
112126
run: uv python install ${{ matrix.python-version }}
113127

128+
# [DO NOT MERGE] pnpm + Node bootstrap for sphinx-vite-builder source build
129+
# of gp-furo-theme — required while gp-sphinx-family deps resolve from the
130+
# improved-defaults-reprs branch (see [tool.uv.sources]). Revert with the
131+
# uv.sources block when gp-sphinx>=0.0.1a18 lands.
132+
- name: Install pnpm
133+
uses: pnpm/action-setup@v6
134+
with:
135+
version: 10
136+
- name: Set up Node
137+
uses: actions/setup-node@v6
138+
with:
139+
node-version: 22
140+
cache: pnpm
141+
114142
- name: Install dependencies
115143
run: uv sync --all-extras --dev
116144

0 commit comments

Comments
 (0)