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
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:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user