Skip to content
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
3 changes: 2 additions & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ repos:
additional_dependencies: [types-cachetools]
args: ["--config-file=pyproject.toml",
"python/cuvs/cuvs",
"cpp/cmake/modules"]
"cpp/cmake/modules",
"cpp/tests/python"]
pass_filenames: false
- repo: https://github.com/PyCQA/pydocstyle
rev: 6.1.1
Expand Down
10 changes: 8 additions & 2 deletions ci/test_cpp.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/bash
# SPDX-FileCopyrightText: Copyright (c) 2022-2025, NVIDIA CORPORATION.
# SPDX-FileCopyrightText: Copyright (c) 2022-2026, NVIDIA CORPORATION.
# SPDX-License-Identifier: Apache-2.0

set -euo pipefail
Expand Down Expand Up @@ -43,9 +43,15 @@ EXITCODE=0
trap "EXITCODE=1" ERR
set +e

# Run Python build utilities tests
rapids-logger "Run libcuvs Python build utilities tests"
pytest cpp/tests/python

# Run libcuvs gtests from libcuvs-tests package
cd "$CONDA_PREFIX"/bin/gtests/libcuvs
rapids-logger "Run libcuvs tests"
pushd "$CONDA_PREFIX"/bin/gtests/libcuvs
ctest -j8 --output-on-failure
popd

rapids-logger "Test script exiting with value: $EXITCODE"
exit ${EXITCODE}
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
compute_matrix_product_script = runpy.run_path(
str(
pathlib.Path(__file__).parent
/ "../../../../cpp/cmake/modules/compute_matrix_product.py"
/ "../../cmake/modules/compute_matrix_product.py"
)
)

Expand Down
3 changes: 2 additions & 1 deletion dependencies.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -382,6 +382,7 @@ dependencies:
packages:
- *cmake_ver
- openblas
- &pytest pytest<9.0.0
docs:
common:
- output_types: [conda]
Expand Down Expand Up @@ -444,7 +445,7 @@ dependencies:
common:
- output_types: [conda, requirements, pyproject]
packages:
- pytest<9.0.0
- *pytest
- pytest-cov
test_py_cuvs:
common:
Expand Down