Add run-tests, which runs the suite as README → Test says and saves the whole log

This commit is contained in:
2026-11-12 08:39:35 +01:00
parent b19ecc459e
commit e4e3d8cff0
7 changed files with 177 additions and 2 deletions
+2 -1
View File
@@ -9,5 +9,6 @@ git bundle create - HEAD | docker run --rm -i --memory 4g --memory-swap 4g --use
git -c init.defaultBranch=main -c advice.detachedHead=false clone --quiet /tmp/head.bundle /tmp/repo
cd /tmp/repo
python3 -m pip install --quiet --disable-pip-version-check --user uv==0.12.23
PATH="$HOME/.local/bin:$PATH" uvx --python "$(command -v python3)" --with pytest-xdist==3.8.0 pytest==9.2.0 -n 4 bin
# On a failure, the CI log shows the whole pytest output, which run-tests saved to its log file.
PATH="$HOME/.local/bin:$PATH" bin/run-tests || { cat /tmp/run-tests-*.log; exit 1; }
'