File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2828
2929 - name : Run Tests
3030 shell : bash -euxo pipefail {0}
31- run : |
32- pytest tests/
33-
34- LIB_DIR=$(python3 -c "import sysconfig; print(sysconfig.get_config_var('LIBDIR'))")
35-
36- if [[ "$RUNNER_OS" == "macOS" ]]; then
37- export DYLD_LIBRARY_PATH="$LIB_DIR:${DYLD_LIBRARY_PATH:-}"
38- else
39- export LD_LIBRARY_PATH="$LIB_DIR:${LD_LIBRARY_PATH:-}"
40- fi
41-
42- source ./venv/bin/activate
43-
44- cargo test --workspace --locked -- --nocapture
31+ run : scripts/run-tests.sh
Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+
3+ set -euxo pipefail
4+
5+ # Running Python tests
6+ uv run pytest tests/
7+
8+ # Setting up LD_LIBRARY_PATH environment variable
9+ # https://pyo3.rs/v0.28.2/building-and-distribution.html#dynamically-embedding-the-python-interpreter
10+ LIB_DIR=$( python3 -c " import sysconfig; print(sysconfig.get_config_var('LIBDIR'))" )
11+ export LD_LIBRARY_PATH=" $LIB_DIR :${LD_LIBRARY_PATH:- } "
12+
13+ uv run cargo test --workspace --locked
You can’t perform that action at this time.
0 commit comments