Skip to content

Commit 27119f4

Browse files
Move test_compute_matrix_product.py to cpp/tests (#1836)
Follow-up to #1812 (comment) Authors: - Kyle Edwards (https://github.com/KyleFromNVIDIA) Approvers: - James Lamb (https://github.com/jameslamb) - Divye Gala (https://github.com/divyegala) URL: #1836
1 parent 95051ba commit 27119f4

4 files changed

Lines changed: 13 additions & 5 deletions

File tree

.pre-commit-config.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@ repos:
3131
additional_dependencies: [types-cachetools]
3232
args: ["--config-file=pyproject.toml",
3333
"python/cuvs/cuvs",
34-
"cpp/cmake/modules"]
34+
"cpp/cmake/modules",
35+
"cpp/tests/python"]
3536
pass_filenames: false
3637
- repo: https://github.com/PyCQA/pydocstyle
3738
rev: 6.1.1

ci/test_cpp.sh

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/bin/bash
2-
# SPDX-FileCopyrightText: Copyright (c) 2022-2025, NVIDIA CORPORATION.
2+
# SPDX-FileCopyrightText: Copyright (c) 2022-2026, NVIDIA CORPORATION.
33
# SPDX-License-Identifier: Apache-2.0
44

55
set -euo pipefail
@@ -43,9 +43,15 @@ EXITCODE=0
4343
trap "EXITCODE=1" ERR
4444
set +e
4545

46+
# Run Python build utilities tests
47+
rapids-logger "Run libcuvs Python build utilities tests"
48+
pytest cpp/tests/python
49+
4650
# Run libcuvs gtests from libcuvs-tests package
47-
cd "$CONDA_PREFIX"/bin/gtests/libcuvs
51+
rapids-logger "Run libcuvs tests"
52+
pushd "$CONDA_PREFIX"/bin/gtests/libcuvs
4853
ctest -j8 --output-on-failure
54+
popd
4955

5056
rapids-logger "Test script exiting with value: $EXITCODE"
5157
exit ${EXITCODE}

python/cuvs/cuvs/tests/test_compute_matrix_product.py renamed to cpp/tests/python/test_compute_matrix_product.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
compute_matrix_product_script = runpy.run_path(
1818
str(
1919
pathlib.Path(__file__).parent
20-
/ "../../../../cpp/cmake/modules/compute_matrix_product.py"
20+
/ "../../cmake/modules/compute_matrix_product.py"
2121
)
2222
)
2323

dependencies.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -382,6 +382,7 @@ dependencies:
382382
packages:
383383
- *cmake_ver
384384
- openblas
385+
- &pytest pytest<9.0.0
385386
docs:
386387
common:
387388
- output_types: [conda]
@@ -444,7 +445,7 @@ dependencies:
444445
common:
445446
- output_types: [conda, requirements, pyproject]
446447
packages:
447-
- pytest<9.0.0
448+
- *pytest
448449
- pytest-cov
449450
test_py_cuvs:
450451
common:

0 commit comments

Comments
 (0)