]> git.ipfire.org Git - thirdparty/fastapi/fastapi.git/commitdiff
🐛 Preserve pytest exit code in regression check (#16091)
authorSebastián Ramírez <tiangolo@gmail.com>
Tue, 28 Jul 2026 13:31:02 +0000 (15:31 +0200)
committerGitHub <noreply@github.com>
Tue, 28 Jul 2026 13:31:02 +0000 (15:31 +0200)
.github/workflows/test.yml

index 7d23b2e8714a5530668becab05649a33618eb9d8..cdd870a1ae5bcfc84c2aba73e2856d842d1f64ba 100644 (file)
@@ -262,7 +262,8 @@ jobs:
           git apply "$RUNNER_TEMP/tests.patch"
           uv sync --locked --no-dev --group tests --extra all
           set +e
-          xargs -0 uv run --no-sync pytest -- < "$RUNNER_TEMP/changed-tests"
+          mapfile -d '' -t changed_tests < "$RUNNER_TEMP/changed-tests"
+          uv run --no-sync pytest -- "${changed_tests[@]}"
           status=$?
           set -e
           if [ "$status" -eq 0 ]; then