Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor cudf pandas integration tests CI #16728

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -9,23 +9,17 @@ cleanup() {

trap cleanup EXIT

runtest_gold() {
runtest() {
local lib=$1
local mode=$2

pytest \
-v \
--continue-on-collection-errors \
--cache-clear \
--numprocesses=${NUM_PROCESSES} \
--dist=worksteal \
${TEST_DIR}/test_${lib}*.py
}

runtest_cudf_pandas() {
local lib=$1
local plugin=""
if [ "$mode" = "cudf" ]; then
plugin="-p cudf.pandas"
fi

pytest \
-p cudf.pandas \
$plugin \
-v \
--continue-on-collection-errors \
--cache-clear \
Expand All @@ -38,8 +32,8 @@ main() {
local lib=$1

# generation phase
runtest_gold ${lib}
runtest_cudf_pandas ${lib}
runtest ${lib} "gold"
runtest ${lib} "cudf"

# assertion phase
pytest \
Expand Down
2 changes: 1 addition & 1 deletion ci/cudf_pandas_scripts/third-party-integration/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ main() {
fi
done

TEST_DIR=${TEST_DIR} NUM_PROCESSES=${NUM_PROCESSES} ci/cudf_pandas_scripts/third-party-integration/ci_run_library_tests.sh ${lib}
TEST_DIR=${TEST_DIR} NUM_PROCESSES=${NUM_PROCESSES} ci/cudf_pandas_scripts/third-party-integration/run-library-tests.sh ${lib}

rapids-logger "Test script exiting with value: ${EXITCODE}"
done
Expand Down
Loading