Skip to content

Commit 7beb24e

Browse files
committed
TST: shippable build efficiency
* try to avoid a redundant build of NumPy by Shippable CI; use "-n" flag to runtests.py to encourage use of installed NumPy instead of trying to rebuild * prefix pip installs with "python" to avoid common issues using pip installs
1 parent 190ac3e commit 7beb24e

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

shippable.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,29 +27,29 @@ build:
2727
- target=$(python tools/openblas_support.py)
2828
- sudo cp -r "${target}"/64/lib/* /usr/lib
2929
- sudo cp "${target}"/64/include/* /usr/include
30-
- pip install --upgrade pip
30+
- python -m pip install --upgrade pip
3131

3232
# we will pay the ~13 minute cost of compiling Cython only when a new
3333
# version is scraped in by pip; otherwise, use the cached
3434
# wheel shippable places on Amazon S3 after we build it once
35-
- pip install -r test_requirements.txt --cache-dir=/root/.cache/pip/wheels/$SHIPPABLE_PYTHON_VERSION
35+
- python -m pip install -r test_requirements.txt --cache-dir=/root/.cache/pip/wheels/$SHIPPABLE_PYTHON_VERSION
3636
# install pytest-xdist to leverage a second core
3737
# for unit tests
38-
- pip install pytest-xdist
38+
- python -m pip install pytest-xdist
3939

4040
# build and test numpy
4141
- export PATH=$PATH:$SHIPPABLE_REPO_DIR
4242
# build first and adjust PATH so f2py is found in scripts dir
4343
# use > 1 core for build sometimes slows down a fair bit,
4444
# other times modestly speeds up, so avoid for now
45-
- pip install .
45+
- python -m pip install .
4646
- extra_directories=($SHIPPABLE_REPO_DIR/build/*scripts*)
4747
- extra_path=$(printf "%s:" "${extra_directories[@]}")
4848
- export PATH="${extra_path}${PATH}"
4949
# check OpenBLAS version
5050
- python tools/openblas_support.py --check_version 0.3.7
5151
# run the test suite
52-
- python runtests.py --debug-info --show-build-log -- -rsx --junit-xml=$SHIPPABLE_REPO_DIR/shippable/testresults/tests.xml -n 2 --durations=10
52+
- python runtests.py -n --debug-info --show-build-log -- -rsx --junit-xml=$SHIPPABLE_REPO_DIR/shippable/testresults/tests.xml -n 2 --durations=10
5353

5454
cache: true
5555
cache_dir_list:

0 commit comments

Comments
 (0)