Skip to content

Commit

Permalink
Slight tweak
Browse files Browse the repository at this point in the history
  • Loading branch information
mrmundt committed Mar 4, 2025
1 parent 22fe3b3 commit 9faa8b5
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 4 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/test_branches.yml
Original file line number Diff line number Diff line change
Expand Up @@ -409,7 +409,10 @@ jobs:
fi
PYVER=$(echo "py${{matrix.python}}" | sed 's/\.//g')
echo "Installing for $PYVER"
for PKG in 'cplex>=12.10' docplex gurobi "$XPRESS" cyipopt pymumps scip; do
PACKAGES='cplex>=12.10 docplex gurobi $XPRESS cyipopt pymumps scip'
# Main installation loop
for PKG in $PACKAGES; do
echo ""
echo "*** Install $PKG ***"
_PKGLIST=$(conda search -f "$PKG") || echo "Package $PKG not found"
Expand All @@ -422,7 +425,9 @@ jobs:
_PYOK=$(echo "$_BUILDS" | grep -E "^($PYVER|pyh)") || echo "INFO: No python build matching $PYVER detected."
if test -z "$_ISPY" -o -n "$_PYOK"; then
install_with_timeout "$PKG"
install_with_timeout "$PKG" || {
echo "WARNING: $PKG installation failed. Continuing with the next package."
}
fi
else
echo "WARNING: $PKG is not available"
Expand Down
9 changes: 7 additions & 2 deletions .github/workflows/test_pr_and_main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -446,7 +446,10 @@ jobs:
fi
PYVER=$(echo "py${{matrix.python}}" | sed 's/\.//g')
echo "Installing for $PYVER"
for PKG in 'cplex>=12.10' docplex gurobi "$XPRESS" cyipopt pymumps scip; do
PACKAGES='cplex>=12.10 docplex gurobi $XPRESS cyipopt pymumps scip'
# Main installation loop
for PKG in $PACKAGES; do
echo ""
echo "*** Install $PKG ***"
_PKGLIST=$(conda search -f "$PKG") || echo "Package $PKG not found"
Expand All @@ -459,7 +462,9 @@ jobs:
_PYOK=$(echo "$_BUILDS" | grep -E "^($PYVER|pyh)") || echo "INFO: No python build matching $PYVER detected."
if test -z "$_ISPY" -o -n "$_PYOK"; then
install_with_timeout "$PKG"
install_with_timeout "$PKG" || {
echo "WARNING: $PKG installation failed. Continuing with the next package."
}
fi
else
echo "WARNING: $PKG is not available"
Expand Down

0 comments on commit 9faa8b5

Please sign in to comment.