Skip to content

Commit 18ec2de

Browse files
committed
loop before leap
1 parent b25c456 commit 18ec2de

1 file changed

Lines changed: 13 additions & 3 deletions

File tree

.github/workflows/experiment.yaml

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -222,10 +222,20 @@ jobs:
222222
for pkg in ${{ matrix.chunk }}; do
223223
echo "::group::Testing $pkg"
224224
cd $pkg
225-
if ! uvx --with 'nox[uv]' nox -s "core_deps_from_source-3.14"; then
226-
echo "::error::Failed in $pkg"
227-
FAILED=1
225+
226+
# THE FIX: Look before you leap.
227+
# Grep the nox list to see if the session actually exists here.
228+
if uvx --with 'nox[uv]' nox -l | grep -q "core_deps_from_source"; then
229+
echo "Session found in $pkg. Executing..."
230+
# Run the test using the explicit name and python flag
231+
if ! uvx --with 'nox[uv]' nox -s "core_deps_from_source-3.14"; then
232+
echo "::error::Failed in $pkg"
233+
FAILED=1
234+
fi
235+
else
236+
echo "Skipping: 'core_deps_from_source' is not defined for $pkg."
228237
fi
238+
229239
cd $GITHUB_WORKSPACE
230240
echo "::endgroup::"
231241
done

0 commit comments

Comments
 (0)