-
Notifications
You must be signed in to change notification settings - Fork 151
add pulp, pyomo integration tests #945
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
Merged
rapids-bot
merged 8 commits into
NVIDIA:release/26.04
from
Iroy30:add_pulp_pyomo_ci_testing
Mar 24, 2026
Merged
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
d21f641
add pulp, pyomo integration tests
Iroy30 93d8529
Merge branch 'main' into add_pulp_pyomo_ci_testing
Iroy30 efe07ee
Merge branch 'main' into add_pulp_pyomo_ci_testing
Iroy30 da62b74
Apply suggestion from @gforsyth
Iroy30 fc0fc8c
Apply suggestion from @gforsyth
Iroy30 d498ff9
Update run_pulp_tests.sh
Iroy30 a3de82c
Update run_pyomo_tests.sh
Iroy30 0af40f8
Merge branch 'release/26.04' into add_pulp_pyomo_ci_testing
Iroy30 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,43 @@ | ||
| #!/bin/bash | ||
| # SPDX-FileCopyrightText: Copyright (c) 2026, NVIDIA CORPORATION & AFFILIATES. All rights reserved. | ||
| # SPDX-License-Identifier: Apache-2.0 | ||
|
|
||
| set -e -u -o pipefail | ||
|
|
||
| rapids-logger "building 'pulp' from source and running cuOpt tests" | ||
|
|
||
| if [ -z "${PIP_CONSTRAINT:-}" ]; then | ||
| rapids-logger "PIP_CONSTRAINT is not set; ensure ci/test_wheel_cuopt.sh (or equivalent) has set it so cuopt wheels are used." | ||
| exit 1 | ||
| fi | ||
|
|
||
| git clone --depth 1 https://github.com/coin-or/pulp.git | ||
| pushd ./pulp || exit 1 | ||
|
|
||
| # Install PuLP in editable form so it uses the environment's cuopt (from PIP_CONSTRAINT) | ||
| python -m pip install \ | ||
| --constraint "${PIP_CONSTRAINT}" \ | ||
| --extra-index-url=https://pypi.anaconda.org/rapidsai-wheels-nightly/simple \ | ||
| pytest \ | ||
| -e . | ||
|
|
||
| pip check | ||
|
|
||
| rapids-logger "running PuLP tests (cuOpt-related)" | ||
| # PuLP uses pytest; run only tests that reference cuopt/CUOPT | ||
| # Exit code 5 = no tests collected; then try run_tests.py which detects solvers (including cuopt) | ||
| pytest_rc=0 | ||
| timeout 5m python -m pytest \ | ||
| --verbose \ | ||
| --capture=no \ | ||
| -k "cuopt or CUOPT" \ | ||
| pulp/tests/ || pytest_rc=$? | ||
|
|
||
| if [ "$pytest_rc" -eq 5 ]; then | ||
| rapids-logger "No pytest -k cuopt tests found; running PuLP run_tests.py (solver auto-detection, includes cuopt)" | ||
| timeout 5m python pulp/tests/run_tests.py | ||
| pytest_rc=$? | ||
| fi | ||
|
|
||
| popd || exit 1 | ||
| exit "$pytest_rc" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,34 @@ | ||
| #!/bin/bash | ||
| # SPDX-FileCopyrightText: Copyright (c) 2026, NVIDIA CORPORATION & AFFILIATES. All rights reserved. | ||
| # SPDX-License-Identifier: Apache-2.0 | ||
|
|
||
| set -e -u -o pipefail | ||
|
|
||
| rapids-logger "building 'pyomo' from source and running cuOpt tests" | ||
|
|
||
| if [ -z "${PIP_CONSTRAINT:-}" ]; then | ||
| rapids-logger "PIP_CONSTRAINT is not set; ensure ci/test_wheel_cuopt.sh (or equivalent) has set it so cuopt wheels are used." | ||
| exit 1 | ||
| fi | ||
|
|
||
| git clone --depth 1 https://github.com/Pyomo/pyomo.git | ||
| pushd ./pyomo || exit 1 | ||
|
|
||
| # Install Pyomo in editable form so it uses the environment's cuopt (from PIP_CONSTRAINT) | ||
| python -m pip install \ | ||
| --constraint "${PIP_CONSTRAINT}" \ | ||
| --extra-index-url=https://pypi.anaconda.org/rapidsai-wheels-nightly/simple \ | ||
| pytest \ | ||
| -e . | ||
|
|
||
| pip check | ||
|
|
||
| rapids-logger "running Pyomo tests (cuopt_direct / cuOpt-related)" | ||
| # Run only tests that reference cuopt (cuopt_direct solver) | ||
| timeout 5m python -m pytest \ | ||
| --verbose \ | ||
| --capture=no \ | ||
| -k "cuopt or CUOPT" \ | ||
| pyomo/solvers/tests/ | ||
|
|
||
| popd || exit 1 | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.