Skip to content

Commit

Permalink
Try removing workaround for TensorFlow failures for Python 3.11
Browse files Browse the repository at this point in the history
  • Loading branch information
lbianchi-lbl committed Aug 16, 2024
1 parent efbe7c7 commit 1113057
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions .github/actions/run-examples/examples_for_idaes_ci.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,24 +28,13 @@ def _matches_pattern(item: pytest.Item, pattern: str) -> bool:


def pytest_configure(config: pytest.Config):
tensorflow_py311_win = pytest.mark.xfail(
condition=sys.version_info > (3, 11),
run=True,
strict=False,
reason="tensorflow ImportError on 3.11+ on Windows (cannot import name 'formatargspec' from 'inspect')",
)
config.stash[matchmarker] = {
"*/held/*": pytest.mark.xfail(run=False, reason="notebook has 'held' status"),
"*/archive/*": pytest.mark.skip(reason="notebook is archived"),
# TODO: Need to fix this once the Python 3.11 issue is resolved in tensorflow
"*/surrogates/best_practices_optimization*": tensorflow_py311_win,
"*/surrogates/omlt/keras_flowsheet_optimization*": tensorflow_py311_win,
"*/surrogates/sco2/alamo/*": pytest.mark.xfail(
run=False,
reason="notebooks require ALAMO to run",
),
"*/surrogates/sco2/omlt/keras_training*": tensorflow_py311_win,
"*/surrogates/sco2/omlt/flowsheet_optimization*": tensorflow_py311_win,
}
config.stash[marked] = []

Expand Down

0 comments on commit 1113057

Please sign in to comment.