Add debug logging to package-tests workflow to diagnose aitbc-core import failure
Some checks failed
Package Tests / Python package - aitbc-agent-sdk (push) Successful in 39s
Package Tests / Python package - aitbc-core (push) Failing after 30s
Package Tests / Python package - aitbc-crypto (push) Successful in 34s
Package Tests / Python package - aitbc-sdk (push) Successful in 32s
Package Tests / JavaScript package - aitbc-sdk-js (push) Successful in 22s
Package Tests / JavaScript package - aitbc-token (push) Successful in 33s

This commit is contained in:
aitbc
2026-04-27 08:35:19 +02:00
parent d7f61ed66b
commit 29124f80dc

View File

@@ -94,6 +94,15 @@ jobs:
echo "=== Tests ==="
if [[ -d "tests" ]]; then
export PYTHONPATH="$PWD/src:$WORKSPACE/repo:$PYTHONPATH"
echo "=== Debug Info ==="
echo "PWD: $PWD"
echo "PYTHONPATH: $PYTHONPATH"
echo "Package name: ${{ matrix.package.name }}"
echo "=== Package Installation Status ==="
venv/bin/python -m pip show aitbc-core || echo "aitbc-core not installed"
echo "=== Import Test ==="
venv/bin/python -c "import sys; print('Python paths:'); [print(p) for p in sys.path]"
echo "=== Running Tests ==="
venv/bin/python -m pytest tests/ -q --tb=short
else
echo "⚠️ No tests directory found"