Skip to content

Commit ece79b7

Browse files
committed
Fix tests
1 parent e6db82f commit ece79b7

1 file changed

Lines changed: 12 additions & 2 deletions

File tree

.github/actions/tests/action.yml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,16 @@ runs:
3030
shell: bash -euxo pipefail {0}
3131
run: |
3232
uv run pytest tests/
33+
3334
LIB_DIR=$(python3 -c "import sysconfig; print(sysconfig.get_config_var('LIBDIR'))")
34-
export LD_LIBRARY_PATH="$LIB_DIR:$LD_LIBRARY_PATH"
35-
cargo test --workspace --locked
35+
PYTHON_PREFIX=$(python3 -c "import sys; print(sys.prefix)")
36+
37+
if [[ "$RUNNER_OS" == "macOS" ]]; then
38+
export DYLD_LIBRARY_PATH="$LIB_DIR:${DYLD_LIBRARY_PATH:-}"
39+
else
40+
export LD_LIBRARY_PATH="$LIB_DIR:${LD_LIBRARY_PATH:-}"
41+
fi
42+
43+
export PYTHONHOME="$PYTHON_PREFIX"
44+
45+
cargo test --workspace --locked -- --nocapture

0 commit comments

Comments
 (0)