8000 Move pip install command into test command [cd build] · scikit-learn/scikit-learn@b0aa4e4 · GitHub
[go: up one dir, main page]

Skip to content

Commit b0aa4e4

Browse files
committed
Move pip install command into test command [cd build]
To workaround travis arm64 buffering issues causing the job to be wrongly detected as stalled after 10min by travis.
1 parent c0e5d1b commit b0aa4e4

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

.travis.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ env:
2020
- SKLEARN_SKIP_NETWORK_TESTS=1
2121
# Custom environment variables for the ARM wheel builder
2222
- CIBW_BUILD_VERBOSITY=1
23-
- CIBW_TEST_REQUIRES="pytest pytest-xdist threadpoolctl"
2423
- CIBW_TEST_COMMAND="bash {project}/build_tools/travis/test_wheels.sh"
2524
- CIBW_ENVIRONMENT="CPU_COUNT=2
2625
OMP_NUM_THREADS=2

build_tools/travis/test_wheels.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
#!/bin/bash
22

33
set -e
4+
pip install --upgrade pip
5+
pip install pytest pytest-xdist
46

57
# Faster run of the source code tests
6-
pytest -n $CPU_COUNT --pyargs sklearn
8+
python -m pytest -n $CPU_COUNT --pyargs sklearn
79

810
# Test that there are no links to system libraries
911
python -m threadpoolctl -i sklearn

0 commit comments

Comments
 (0)
0