Skip to content

Commit a286991

Browse files
committed
add a simple smoketest for cvxpy
1 parent 4824781 commit a286991

File tree

2 files changed

+32
-0
lines changed

2 files changed

+32
-0
lines changed

ci/external/cvxpy_smoketest.sh

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
#!/bin/bash
2+
3+
# SPDX-FileCopyrightText: Copyright (c) 2024-2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
4+
# SPDX-License-Identifier: Apache-2.0
5+
#
6+
# Licensed under the Apache License, Version 2.0 (the "License");
7+
# you may not use this file except in compliance with the License.
8+
# You may obtain a copy of the License at
9+
#
10+
# http://www.apache.org/licenses/LICENSE-2.0
11+
#
12+
# Unless required by applicable law or agreed to in writing, software
13+
# distributed under the License is distributed on an "AS IS" BASIS,
14+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15+
# See the License for the specific language governing permissions and
16+
# limitations under the License.
17+
18+
19+
git clone -b cuopt_solver https://github.com/tmckayus/cvxpy
20+
pushd cvxpy || exit 1
21+
pip install pytest-error-for-skips
22+
pip install -e .
23+
python -m pytest --error-for-skips cvxpy/tests/test_conic_solvers.py -k "TestCUOPT"
24+
EXITCODE="$?"
25+
if [ "$EXITCODE" -eq 0 ]; then
26+
echo PASSED smoketest
27+
else
28+
echo FAILED smoketest
29+
fi
30+
popd || exit 1
31+
exit $EXITCODE

ci/test_wheel_cuopt.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,3 +59,4 @@ timeout 10m bash ./python/libcuopt/libcuopt/tests/test_cli.sh
5959
# Run Python tests
6060
RAPIDS_DATASET_ROOT_DIR=./datasets timeout 30m python -m pytest --verbose --capture=no ./python/cuopt/cuopt/tests/
6161

62+
timeout 3m ./ci/external/cvxpy_smoketest.sh

0 commit comments

Comments
 (0)