mirror of
https://github.com/NVIDIA/nvbench.git
synced 2026-04-19 22:38:52 +00:00
Try capturing the Python path before changing directories
This commit is contained in:
@@ -38,8 +38,11 @@ fi
|
||||
echo "Installing wheel: $PYNVBENCH_WHEEL_PATH"
|
||||
python -m pip install "${PYNVBENCH_WHEEL_PATH}[test]"
|
||||
|
||||
# Capture the Python path before changing directories
|
||||
# This prevents .python-version file from interfering
|
||||
PYTHON_EXE="$(which python)"
|
||||
echo "Using Python: $PYTHON_EXE"
|
||||
|
||||
# Run tests
|
||||
# Disable pyenv to prevent .python-version file from interfering
|
||||
export PYENV_VERSION=system
|
||||
cd "/workspace/python/test/"
|
||||
python -m pytest -v test_nvbench.py
|
||||
"$PYTHON_EXE" -m pytest -v test_nvbench.py
|
||||
|
||||
Reference in New Issue
Block a user