Add run-tests, which runs the suite as README → Test says and saves the whole log
This commit is contained in:
@@ -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; }
|
||||
'
|
||||
|
||||
Reference in New Issue
Block a user