Skip to content

Apache DataFusion SQL Query Engine

ARROW-3569: [Packaging] Run pyarrow unittests when building conda package

Krisztián Szűcs0f6ee370dbcc
diff --git a/dev/tasks/conda-recipes/appveyor.yml b/dev/tasks/conda-recipes/appveyor.yml
index 47e331f879..cdc9d97537 100644
--- a/dev/tasks/conda-recipes/appveyor.yml
+++ b/dev/tasks/conda-recipes/appveyor.yml
@@ -51,6 +51,7 @@ build: off
test_script:
- git clone -b {{ arrow.branch }} {{ arrow.remote }} arrow || exit /B
- git -C arrow checkout {{ arrow.head }} || exit /B
+
- pushd arrow\dev\tasks\conda-recipes
- conda.exe build --output-folder . -m {{ variant_config_file }} parquet-cpp arrow-cpp pyarrow
- pushd win-64
diff --git a/dev/tasks/conda-recipes/pyarrow/build.sh b/dev/tasks/conda-recipes/pyarrow/build.sh
index 93f155a6cd..22116b2318 100644
--- a/dev/tasks/conda-recipes/pyarrow/build.sh
+++ b/dev/tasks/conda-recipes/pyarrow/build.sh
@@ -24,7 +24,6 @@ set -x
export ARROW_HOME=$PREFIX
export PARQUET_HOME=$PREFIX
-
cd python
$PYTHON setup.py \
build_ext --build-type=release --with-parquet --with-plasma --with-orc \
diff --git a/dev/tasks/conda-recipes/pyarrow/meta.yaml b/dev/tasks/conda-recipes/pyarrow/meta.yaml
index 45e28a73d0..167056ba68 100644
--- a/dev/tasks/conda-recipes/pyarrow/meta.yaml
+++ b/dev/tasks/conda-recipes/pyarrow/meta.yaml
@@ -56,6 +56,12 @@ test:
- pyarrow.parquet
- pyarrow.plasma # [unix]
+ requires:
+ - pytest
+
+ commands:
+ - pytest --pyargs pyarrow
+
about:
home: http://github.com/apache/arrow
license: Apache 2.0