Skip to content

Commit

Permalink
add codecov for pandas tests in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
galipremsagar committed Nov 28, 2023
1 parent 5e58e71 commit 841b82c
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion ci/cudf_pandas_scripts/run_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@

set -eoxu pipefail

RAPIDS_TESTS_DIR=${RAPIDS_TESTS_DIR:-"${PWD}/test-results"}
RAPIDS_COVERAGE_DIR=${RAPIDS_COVERAGE_DIR:-"${PWD}/coverage-results"}
mkdir -p "${RAPIDS_TESTS_DIR}" "${RAPIDS_COVERAGE_DIR}"


# Function to display script usage
function display_usage {
echo "Usage: $0 [--no-cudf]"
Expand Down Expand Up @@ -49,4 +54,9 @@ else
python -m pip install $(ls ./local-cudf-dep/cudf*.whl)[test,cudf_pandas_tests]
fi

python -m pytest -p cudf.pandas ./python/cudf/cudf_pandas_tests/
python -m pytest -p cudf.pandas \
--cov-config=./python/cudf/.coveragerc \
--cov=cudf \
--cov-report=xml:"${RAPIDS_COVERAGE_DIR}/cudf-pandas-coverage.xml" \
--cov-report=term \
./python/cudf/cudf_pandas_tests/

0 comments on commit 841b82c

Please sign in to comment.