Skip to content

Commit

Permalink
chore(build): adapt test script to pyproject
Browse files Browse the repository at this point in the history
  • Loading branch information
SauravMaheshkar committed Apr 9, 2024
1 parent 657736c commit 44b1772
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,20 +26,20 @@ python --version

# Install JAX.
python -m pip install --upgrade pip setuptools
python -m pip install -r requirements.txt
python -c 'import jax; print(jax.__version__)'

# Run setup.py, this installs the python dependencies
python -m pip install .

python -c 'import jax; print(jax.__version__)'

# Python test dependencies.
python -m pip install -r requirements_tests.txt
python -m pip install -e ".[test]"

# CPU count on macos or linux
if [ "$(uname)" == "Darwin" ]; then
N_JOBS=$(sysctl -n hw.logicalcpu)
N_JOBS=$(sysctl -n hw.logicalcpu)
else
N_JOBS=$(grep -c ^processor /proc/cpuinfo)
N_JOBS=$(grep -c ^processor /proc/cpuinfo)
fi

# Run tests using pytest.
Expand Down

0 comments on commit 44b1772

Please sign in to comment.