@@ -326,15 +326,65 @@ jobs:
326326 uses : addnab/docker-run-action@v3
327327 with :
328328 image : ${{ steps.docker.outputs.IMAGE }}
329- options : -v ${{ steps.docker.outputs.PNPM_STORE_PATH }}:${{ steps.docker.outputs.PNPM_STORE_PATH }} -v ${{ github.workspace }}:${{ github.workspace }} -w ${{ github.workspace }} --platform ${{ steps.docker.outputs.PLATFORM }}
329+ options : -v ${{ steps.docker.outputs.PNPM_STORE_PATH }}:${{ steps.docker.outputs.PNPM_STORE_PATH }} -v ${{ github.workspace }}:${{ github.workspace }} -w ${{ github.workspace }} --platform ${{ steps.docker.outputs.PLATFORM }} -e CI=true -e GITHUB_ACTIONS=true
330330 run : |
331- # Install Python 3.9+ (any version will work with abi3-py39)
331+ # Install Python 3.x
332332 apt-get update -y
333333 apt-get install -y python3 python3-dev
334334
335+ echo "=== Starting test setup ==="
336+ echo "Current directory: $(pwd)"
337+ echo "Python version: $(python3 --version)"
338+ echo "Patchelf version: $(patchelf --version)"
339+ echo "CI environment: CI=$CI, GITHUB_ACTIONS=$GITHUB_ACTIONS"
340+
341+ # Check what .node files exist
342+ echo "=== Available .node files ==="
343+ ls -la *.node || echo "No .node files found"
344+
345+ # Check what .node files exist and their Python dependencies
346+ echo "=== Checking .node file Python dependencies ==="
347+ for file in *.node; do
348+ if [ -f "$file" ]; then
349+ case "$file" in
350+ *linux*)
351+ echo "Checking $file..."
352+ echo "Python dependencies:"
353+ ldd "$file" 2>/dev/null | grep python || echo "No Python dependencies found"
354+ echo "---"
355+ ;;
356+ *)
357+ echo "Skipping non-Linux file: $file"
358+ ;;
359+ esac
360+ fi
361+ done
362+
335363 # Install pnpm and run tests
364+ echo "=== Installing pnpm ==="
336365 corepack disable
337366 npm i -gf pnpm
367+
368+ echo "=== Running pnpm install ==="
369+ # Should be non-interactive in CI environment
370+ pnpm install --prefer-offline
371+
372+ echo "=== Setting up Python library path ==="
373+ export LD_LIBRARY_PATH=/usr/lib/x86_64-linux-gnu:$LD_LIBRARY_PATH
374+ echo "LD_LIBRARY_PATH: $LD_LIBRARY_PATH"
375+
376+ # Find and preload the Python library
377+ echo "=== Finding Python library to preload ==="
378+ PYTHON_LIB=$(find /usr/lib* -name "libpython3*.so.*" -type f 2>/dev/null | head -1)
379+ if [ -n "$PYTHON_LIB" ]; then
380+ echo "Found Python library: $PYTHON_LIB"
381+ export LD_PRELOAD=$PYTHON_LIB
382+ echo "LD_PRELOAD: $LD_PRELOAD"
383+ else
384+ echo "Warning: Could not find Python library to preload"
385+ fi
386+
387+ echo "=== Running tests ==="
338388 pnpm test
339389
340390 publish :
0 commit comments