Skip to content

Commit

Permalink
Only basic python wheel tests with oldest NumPy
Browse files Browse the repository at this point in the history
  • Loading branch information
kbvw committed Aug 27, 2024
1 parent b624267 commit a665da1
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions packaging/python/test_wheels.sh
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,12 @@ test_wheel () {
}


test_wheel_basic_python () {
echo "=========== BASIC PYTHON TESTS ==========="
$python_exe -c "import neuron; neuron.test(); neuron.test_rxd()"
}


echo "== Testing $python_wheel using $python_exe ($python_ver) =="


Expand Down Expand Up @@ -271,12 +277,12 @@ fi

# run tests with latest NumPy
echo " == Running tests with latest NumPy == "
time test_wheel "${python_exe}"
time test_wheel

# run tests with oldest supported NumPy
echo " == Running tests with oldest supported NumPy == "
# run basic python tests with oldest supported NumPy
echo " == Running basic python tests with oldest supported NumPy == "
$python_exe -m pip install -r packaging/python/oldest_numpy_requirements.txt
time test_wheel "${python_exe}"
time test_wheel_basic_python

# cleanup
if [[ "$use_venv" != "false" ]]; then
Expand Down

0 comments on commit a665da1

Please sign in to comment.