Skip to content

Commit

Permalink
Fix codecov in CI (#10347)
Browse files Browse the repository at this point in the history
This PR fixes `codecov` reports generation when used with `pytest-xdist`.

Authors:
  - GALI PREM SAGAR (https://github.com/galipremsagar)

Approvers:
  - Vyas Ramasubramani (https://github.com/vyasr)
  - Jordan Jacobelli (https://github.com/Ethyling)
  - Bradley Dice (https://github.com/bdice)
  - Benjamin Zaitlen (https://github.com/quasiben)

URL: #10347
  • Loading branch information
galipremsagar authored Mar 8, 2022
1 parent 5207eff commit a9b6cb1
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
5 changes: 3 additions & 2 deletions ci/gpu/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
3 changes: 1 addition & 2 deletions python/cudf/.coveragerc
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# Configuration file for Python coverage tests
[run]
include = cudf/*
omit = cudf/tests/*
source = cudf
3 changes: 1 addition & 2 deletions python/dask_cudf/.coveragerc
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# Configuration file for Python coverage tests
[run]
include = dask_cudf/*
omit = dask_cudf/tests/*
source = dask_cudf

0 comments on commit a9b6cb1

Please sign in to comment.