8000 [MRG] CI Add commit flag [nightly] to run travis with SciPy nightly builds by jnothman · Pull Request #11377 · scikit-learn/scikit-learn · GitHub
[go: up one dir, main page]

Skip to content

[MRG] CI Add commit flag [nightly] to run travis with SciPy nightly builds #11377

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Jun 28, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@ matrix:
# installed from their CI wheels in a virtualenv with the Python
# interpreter provided by travis.
- python: 3.6
env: DISTRIB="scipy-dev-wheels"
if: type = cron
env: DISTRIB="scipy-dev"
if: type = cron OR commit_message ~ /\[scipy-dev\]/

install: source build_tools/travis/install.sh
script: bash build_tools/travis/test_script.sh
Expand Down
2 changes: 1 addition & 1 deletion build_tools/travis/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ elif [[ "$DISTRIB" == "ubuntu" ]]; then
source testvenv/bin/activate
pip install pytest pytest-cov cython==$CYTHON_VERSION

elif [[ "$DISTRIB" == "scipy-dev-wheels" ]]; then
elif [[ "$DISTRIB" == "scipy-dev" ]]; then
# Set up our own virtualenv environment to avoid travis' numpy.
# This venv points to the python interpreter of the travis build
# matrix.
Expand Down
1 change: 1 addition & 0 8000 deletions doc/developers/contributing.rst
Original file line number Diff line number Diff line change
Expand Up @@ -400,6 +400,7 @@ and Cython optimizations.
====================== ===================
Commit Message Marker Action Taken by CI
---------------------- -------------------
[scipy-dev] Add a Travis build with our dependencies (numpy, scipy, etc ...) development builds
[ci skip] CI is skipped completely
[doc skip] Docs are not built
[doc quick] Docs built, but excludes example gallery plots
Expand Down
4 changes: 4 additions & 0 deletions sklearn/preprocessing/tests/test_common.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import warnings

import pytest
import numpy as np

Expand Down Expand Up @@ -110,10 +112,12 @@ def test_missing_value_handling(est, func, support_sparse, strictly_positive):
X_train_sp = sparse_constructor(X_train)
X_test_sp = sparse_constructor(X_test)
with pytest.warns(None) as records:
warnings.simplefilter('ignore', PendingDeprecationWarning)
Xt_sp = est_sparse.fit(X_train_sp).transform(X_test_sp)
assert len(records) == 0
assert_allclose(Xt_sp.A, Xt_dense)
with pytest.warns(None) as records:
warnings.simplefilter('ignore', PendingDeprecationWarning)
Xt_inv_sp = est_sparse.inverse_transform(Xt_sp)
assert len(records) == 0
assert_allclose(Xt_inv_sp.A, Xt_inv_dense)
0