diff --git a/ci/gpu/build.sh b/ci/gpu/build.sh index a79ffa0fc47..aa57d02032b 100755 --- a/ci/gpu/build.sh +++ b/ci/gpu/build.sh @@ -239,9 +239,10 @@ fi # TEST - Run py.test, notebooks ################################################################################ -cd "$WORKSPACE/python/cudf" +cd "$WORKSPACE/python/cudf/cudf" +# It is essential to cd into $WORKSPACE/python/cudf/cudf as `pytest-xdist` + `coverage` seem to work only at this directory level. gpuci_logger "Python py.test for cuDF" -py.test -n 8 --cache-clear --basetemp="$WORKSPACE/cudf-cuda-tmp" --ignore="$WORKSPACE/python/cudf/cudf/benchmarks" --junitxml="$WORKSPACE/junit-cudf.xml" -v --cov-config=.coveragerc --cov=cudf --cov-report=xml:"$WORKSPACE/python/cudf/cudf-coverage.xml" --cov-report term --dist=loadscope cudf +py.test -n 8 --cache-clear --basetemp="$WORKSPACE/cudf-cuda-tmp" --ignore="$WORKSPACE/python/cudf/cudf/benchmarks" --junitxml="$WORKSPACE/junit-cudf.xml" -v --cov-config="$WORKSPACE/python/cudf/.coveragerc" --cov=cudf --cov-report=xml:"$WORKSPACE/python/cudf/cudf-coverage.xml" --cov-report term --dist=loadscope tests cd "$WORKSPACE/python/dask_cudf" gpuci_logger "Python py.test for dask-cudf" diff --git a/python/cudf/.coveragerc b/python/cudf/.coveragerc index 4aba6d098df..929ab87f493 100644 --- a/python/cudf/.coveragerc +++ b/python/cudf/.coveragerc @@ -1,4 +1,3 @@ # Configuration file for Python coverage tests [run] -include = cudf/* -omit = cudf/tests/* \ No newline at end of file +source = cudf diff --git a/python/dask_cudf/.coveragerc b/python/dask_cudf/.coveragerc index dc953eefef3..10a8ce87884 100644 --- a/python/dask_cudf/.coveragerc +++ b/python/dask_cudf/.coveragerc @@ -1,4 +1,3 @@ # Configuration file for Python coverage tests [run] -include = dask_cudf/* -omit = dask_cudf/tests/* \ No newline at end of file +source = dask_cudf