diff --git a/ci/requirements-2.7.sh b/ci/requirements-2.7.sh index 64d470e5c6e0ed..96a83c083f735b 100644 --- a/ci/requirements-2.7.sh +++ b/ci/requirements-2.7.sh @@ -2,6 +2,6 @@ source activate pandas -echo "install 27" +echo "install 27 BUILD_TEST" conda install -n pandas -c conda-forge feather-format diff --git a/ci/requirements-2.7_BUILD_TEST.pip b/ci/requirements-2.7_BUILD_TEST.pip new file mode 100644 index 00000000000000..e5ee4c60aa1ccb --- /dev/null +++ b/ci/requirements-2.7_BUILD_TEST.pip @@ -0,0 +1,7 @@ +xarray +geopandas +dask +seaborn +pandas_gbq +pandas_datareader +statsmodels diff --git a/ci/requirements-2.7_BUILD_TEST.sh b/ci/requirements-2.7_BUILD_TEST.sh new file mode 100755 index 00000000000000..d6283a4453f22e --- /dev/null +++ b/ci/requirements-2.7_BUILD_TEST.sh @@ -0,0 +1,7 @@ +#!/bin/bash + +source activate pandas + +echo "install 27" + +conda install -n pandas -c conda-forge pyarrow diff --git a/pandas/tests/test_downstream.py b/pandas/tests/test_downstream.py new file mode 100644 index 00000000000000..f95cde813315da --- /dev/null +++ b/pandas/tests/test_downstream.py @@ -0,0 +1,58 @@ +""" +Testing that we work in the downstream packages +""" +import pytest +from pandas import DataFrame + + +@pytest.fixture +def df(): + return DataFrame({'A': [1, 2, 3]}) + + +def test_dask(df): + + dask = pytest.importorskip('dask') # noqa + + import dask.dataframe as dd + + ddf = dd.from_pandas(df) + assert ddf.A is not None + assert ddf.compute() + + +def test_xarray(df): + + xarray = pytest.importorskip('xarray') # noqa + + assert df.to_xarray() is not None + + +def test_statsmodels(df): + + statsmodels = pytest.importorskip('statsmodels') # noqa + + +def test_seaborn(df): + + seaborn = pytest.importorskip('seaborn') # noqa + + +def test_pandas_gbq(df): + + pandas_gbq = pytest.importorskip('pandas-gbq') # noqa + + +def test_pandas_datareader(df): + + pandas_datareader = pytest.importorskip('pandas-datareader') # noqa + + +def test_geopandas(df): + + geopandas = pytest.importorskip('geopandas') # noqa + + +def test_pyarrow(df): + + pyarrow = pytest.importorskip('pyarrow') # noqa