File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -64,20 +64,20 @@ jobs:
6464 FAILED=0
6565
6666 for pkg in ${{ matrix.chunk }}; do
67- echo "::group::Testing $pkg (Python ${{ matrix.python }})"
67+ echo "=========================================================="
68+ echo "🚀 TESTING: $pkg (Python ${{ matrix.python }})"
69+ echo "=========================================================="
6870 cd "$pkg"
6971
70- # Run test, pipe to log for clean UI folding
71- if uvx --with 'nox[uv]' nox -s "unit-${{ matrix.python }}" > nox_output.log 2>&1; then
72- cat nox_output.log
72+ # Clean, readable bash: Check if the session exists before running it
73+ if uvx --with 'nox[uv]' nox -l | grep -q "unit-${{ matrix.python }}"; then
74+ # Run the test and stream logs directly to the UI
75+ uvx --with 'nox[uv]' nox -s "unit-${{ matrix.python }}" || FAILED=1
7376 else
74- cat nox_output.log
75- # Gracefully skip if the Python version isn't supported by this legacy package
76- grep -q "Sessions not found:" nox_output.log || FAILED=1
77+ echo "⏭️ Session 'unit-${{ matrix.python }}' not defined for $pkg. Safely skipping."
7778 fi
7879
7980 cd "$GITHUB_WORKSPACE"
80- echo "::endgroup::"
8181 done
8282
8383 exit $FAILED
You can’t perform that action at this time.
0 commit comments