Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 11 additions & 1 deletion .github/workflows/build-test-package-python-cuda.yml
Original file line number Diff line number Diff line change
Expand Up @@ -233,4 +233,14 @@ jobs:
pip install cupy-cuda12x torch

pip install pytest
pytest $GITHUB_WORKSPACE/test/*.py

# Run tests with warning detection.
# SWIG < 4.4 triggers the Py_LIMITED_API "builtin type swig…" warning when
# Python runs with -Walways; pytest enables that behavior, so we ignore it.
stderr_log=$(mktemp)
pytest $GITHUB_WORKSPACE/test/*.py -vv -s -W "ignore:builtin type swig" 2> "$stderr_log"
if grep -q "Warning" "$stderr_log"; then
echo "Warnings found in stderr, failing the build"
cat "$stderr_log"
exit 1
fi