Skip to content

Commit 4ea79e6

Browse files
committed
update core-deps workflow to use uv
1 parent bfc156a commit 4ea79e6

1 file changed

Lines changed: 14 additions & 12 deletions

File tree

.github/workflows/experiment.yaml

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -195,8 +195,8 @@ jobs:
195195
done
196196
exit $FAILED
197197
198-
# ==========================================
199-
# 5. CORE DEPS FROM SOURCE (Legacy Pip Fallback)
198+
# ==========================================
199+
# 5. CORE DEPS FROM SOURCE (Pure UV)
200200
# ==========================================
201201
unit-core-deps-from-source:
202202
needs: discover
@@ -208,26 +208,28 @@ jobs:
208208
chunk: ${{ fromJSON(needs.discover.outputs.chunks) }}
209209
steps:
210210
- uses: actions/checkout@v4
211-
- uses: actions/setup-python@v5
211+
- uses: astral-sh/setup-uv@v5
212212
with:
213213
python-version: "3.14"
214-
215-
- name: Install Nox (Standard)
216-
run: python -m pip install nox virtualenv
217-
214+
enable-cache: true
218215
- name: Execute Core Deps
219216
run: |
220-
# We intentionally DO NOT export NOX_DEFAULT_VENV_BACKEND=uv here.
221-
# We must use legacy pip to support the hardcoded '--ignore-installed' flag.
217+
export NOX_DEFAULT_VENV_BACKEND=uv
218+
export UV_VENV_SEED=1
219+
export UV_COMPILE_BYTECODE=1
220+
221+
# NATIVELY instruct uv to allow prerelease Git resolution
222+
export UV_PRERELEASE=allow
222223
223224
FAILED=0
224225
for pkg in ${{ matrix.chunk }}; do
225226
echo "::group::Testing $pkg"
226227
cd $pkg
227228
228-
if nox -l | grep -q "core_deps_from_source"; then
229-
echo "Session found in $pkg. Executing with standard pip..."
230-
if ! nox -s "core_deps_from_source" -p "3.14"; then
229+
# The Look-Before-You-Leap check
230+
if uvx --with 'nox[uv]' nox -l | grep -q "core_deps_from_source"; then
231+
# Natively executes with pure UV speed using your newly patched Noxfiles
232+
if ! uvx --with 'nox[uv]' nox -s "core_deps_from_source" -p "3.14"; then
231233
echo "::error::Failed in $pkg"
232234
FAILED=1
233235
fi

0 commit comments

Comments
 (0)