ci: switch runner from astral-uv to ubuntu-latest
CI / CI (push) Failing after 11s

Replaces the self-hosted astral-uv runner (which had uv
pre-installed) with the standard GitHub-hosted ubuntu-latest.
Adds back the astral-sh/setup-uv step that was omitted in the
self-hosted case.

The astral-uv runner was timing out / unreachable from the
GitHub Actions side; ubuntu-latest is universally available.

Trade-off: ubuntu-latest runners start fresh each run (~30s cold
start) and the setup-uv step takes a few seconds to download uv,
versus a self-hosted runner that boots in <1s with uv ready. For
a single CI job that runs on tag push only, the extra ~10s is
not a problem.

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
tao.chen
2026-07-21 19:14:49 +08:00
co-authored by Claude
parent d40d19ae96
commit f8c186fe2c
+12 -7
View File
@@ -11,20 +11,25 @@ on:
jobs: jobs:
ci: ci:
name: CI name: CI
# `astral-uv` is a self-hosted runner with uv pre-installed, so we can # Standard GitHub-hosted ubuntu runner. uv is installed via the
# skip the setup-uv step entirely. pyproject.toml's # astral-sh/setup-uv action (one extra step vs. using a self-hosted
# [tool.hatch.build.hooks.jupyter-builder] handles jlpm install + # runner with uv pre-installed, but matches what GitHub-hosted CI
# jlpm build:prod before wheel assembly. # provides out of the box).
runs-on: astral-uv runs-on: ubuntu-latest
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v4 uses: actions/checkout@v4
- name: Set up uv
uses: astral-sh/setup-uv@v6
with:
enable-cache: true
- name: Build package - name: Build package
env: env:
# Use the Tsinghua PyPI mirror for build-environment resolution; # Use the Tsinghua PyPI mirror for build-environment resolution;
# the self-hosted runner is in China and the default pypi.org is # the runner is in China and the default pypi.org is too slow
# too slow / unreliable for build dependency install. # / unreliable for build dependency install.
UV_DEFAULT_INDEX: "https://pypi.tuna.tsinghua.edu.cn/simple/" UV_DEFAULT_INDEX: "https://pypi.tuna.tsinghua.edu.cn/simple/"
run: uv build run: uv build