Skip to content

Commit

Permalink
fixed python3.12 failing CI tests (pybamm-team#4118)
Browse files Browse the repository at this point in the history
  • Loading branch information
santacodes authored and js1tr3 committed Aug 12, 2024
1 parent 1a1c689 commit 03dad20
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ def run_pybamm_requires(session):
def run_coverage(session):
"""Run the coverage tests and generate an XML report."""
set_environment_variables(PYBAMM_ENV, session=session)
session.install("setuptools", silent=False)
session.install("coverage", silent=False)
# TODO: remove this when PyBaMM moves to pyproject.toml
session.install("--upgrade", "pip", "setuptools", "wheel", silent=False)
Expand Down Expand Up @@ -106,6 +107,7 @@ def run_unit(session):
def run_examples(session):
"""Run the examples tests for Jupyter notebooks."""
set_environment_variables(PYBAMM_ENV, session=session)
session.install("setuptools", silent=False)
session.install("-e", ".[all,dev]", silent=False)
notebooks_to_test = session.posargs if session.posargs else []
session.run("pytest", "--nbmake", *notebooks_to_test, external=True)
Expand Down

0 comments on commit 03dad20

Please sign in to comment.