Skip to content

Commit f6cf386

Browse files
committed
ci: skip SPA build hook in jobs without bun
The setuptools build hook (setup.py) now runs build_ui.sh during every 'python -m build'/'make build'. Three jobs build a wheel but have no bun/uv to compile the SPA and never shipped one: - package-testing (install/import variant tests) — workflow-level env - ci-tests build-and-package (CI wheel artifact) - dev-containers build (wheel for container scan) Set ORB_SKIP_UI_BUILD=1 on their builds so they package a core-only wheel, matching prior behaviour. The release jobs (semantic-release, dev-pypi, prod-release) set up bun and continue to build the full SPA.
1 parent 310bb41 commit f6cf386

3 files changed

Lines changed: 14 additions & 0 deletions

File tree

.github/workflows/ci-tests.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -229,6 +229,10 @@ jobs:
229229
fail-on-cache-miss: false
230230

231231
- name: Build package
232+
# This job builds a wheel artifact for CI validation only and has no
233+
# bun/uv to compile the SPA (it never shipped one). Skip the UI build.
234+
env:
235+
ORB_SKIP_UI_BUILD: "1"
232236
run: make build
233237

234238
- name: Upload build artifacts

.github/workflows/dev-containers.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,10 @@ jobs:
127127
fail-on-cache-miss: false
128128

129129
- name: Build package wheel
130+
# This job builds a wheel to scan in a container image and has no bun/uv
131+
# to compile the SPA (it never shipped one). Skip the UI build.
132+
env:
133+
ORB_SKIP_UI_BUILD: "1"
130134
run: make build
131135

132136
- name: Build and scan container image

.github/workflows/package-testing.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,12 @@ on:
1717
permissions:
1818
contents: read
1919

20+
# This workflow only tests install/import variants of the built wheel — it never
21+
# needs the Reflex SPA bundle, and its runners have no bun/uv to build one. Skip
22+
# the SPA build hook (setup.py) for every `python -m build` in this file.
23+
env:
24+
ORB_SKIP_UI_BUILD: "1"
25+
2026
# Per-ref concurrency: prevents a rapid series of pushes to main from queuing
2127
# redundant package-testing runs. Each ref can only have one run active at a
2228
# time; a newer push cancels the older in-progress run.

0 commit comments

Comments
 (0)