Skip to content

Make pipeline more verbose #1037

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
merged 5 commits into from
Jul 26, 2025
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
5 changes: 3 additions & 2 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,9 @@ jobs:

- name: Install PySCIPOpt
run: |
export CFLAGS="-O0 -ggdb" # disable compiler optimizations for faster builds
python -m pip install .
export CFLAGS="-O0 -ggdb -Wall -Wextra -Werror" # Debug mode. More warnings. Warnings as errors.
python -m pip install . -v 2>&1 | tee build.log
grep -i "warning" build.log || true

- name: Run pyscipopt tests
run: |
Expand Down
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
- Generalized getLhs() and getRhs() to additionally support any linear type constraint
### Fixed
- Raised an error when an expression is used when a variable is required
- Fixed some compile warnings
### Changed
- MatrixExpr.sum() now supports axis arguments and can return either a scalar or MatrixExpr depending on the result dimensions
### Removed
Expand Down
2 changes: 1 addition & 1 deletion src/pyscipopt/event.pxi
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ cdef class Eventhdlr:


# local helper functions for the interface
cdef Eventhdlr getPyEventhdlr(SCIP_EVENTHDLR* eventhdlr) noexcept with gil:
cdef Eventhdlr getPyEventhdlr(SCIP_EVENTHDLR* eventhdlr):
cdef SCIP_EVENTHDLRDATA* eventhdlrdata
eventhdlrdata = SCIPeventhdlrGetData(eventhdlr)
return <Eventhdlr>eventhdlrdata
Expand Down
2 changes: 1 addition & 1 deletion src/pyscipopt/expr.pxi
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,7 @@ cdef class ExprCons:
def __repr__(self):
return 'ExprCons(%s, %s, %s)' % (self.expr, self._lhs, self._rhs)

def __nonzero__(self):
def __bool__(self):
'''Make sure that equality of expressions is not asserted with =='''

msg = """Can't evaluate constraints as booleans.
Expand Down
13 changes: 0 additions & 13 deletions src/pyscipopt/scip.pxd
Original file line number Diff line number Diff line change
Expand Up @@ -408,12 +408,6 @@ cdef extern from "scip/scip.h":
ctypedef struct SCIP_PROPDATA:
pass

ctypedef struct SCIP_PROPTIMING:
pass

ctypedef struct SCIP_PRESOLTIMING:
pass

ctypedef struct SCIP_PRESOL:
pass

Expand Down Expand Up @@ -456,9 +450,6 @@ cdef extern from "scip/scip.h":
ctypedef struct SCIP_PRESOL:
pass

ctypedef struct SCIP_HEURTIMING:
pass

ctypedef struct SCIP_SEPA:
pass

Expand Down Expand Up @@ -510,9 +501,6 @@ cdef extern from "scip/scip.h":
ctypedef struct BMS_BLKMEM:
pass

ctypedef struct SCIP_EXPR:
pass

ctypedef struct SCIP_EXPRHDLR:
pass

Expand Down Expand Up @@ -708,7 +696,6 @@ cdef extern from "scip/scip.h":
SCIP_Real SCIPgetLocalTransEstimate(SCIP* scip)

# Solve Methods
SCIP_RETCODE SCIPsolve(SCIP* scip)
SCIP_RETCODE SCIPsolve(SCIP* scip) noexcept nogil
SCIP_RETCODE SCIPsolveConcurrent(SCIP* scip)
SCIP_RETCODE SCIPfreeTransform(SCIP* scip)
Expand Down
1 change: 0 additions & 1 deletion src/pyscipopt/scip.pxi
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@
if rc == SCIP_OKAY:
pass
elif rc == SCIP_ERROR:
raise Exception('SCIP: unspecified error!')

Check failure on line 304 in src/pyscipopt/scip.pxi

View workflow job for this annotation

GitHub Actions / test-coverage (3.11)

SCIP: unspecified error!
elif rc == SCIP_NOMEMORY:
raise MemoryError('SCIP: insufficient memory error!')
elif rc == SCIP_READERROR:
Expand Down Expand Up @@ -7974,7 +7974,6 @@

"""
raise Warning("model.getDualMultiplier(cons) is deprecated: please use model.getDualsolLinear(cons)")
return self.getDualsolLinear(cons)

def getDualfarkasLinear(self, Constraint cons):
"""
Expand Down