Skip to content

Commit

Permalink
pybamm-team#3443 Install jax extras in the same command
Browse files Browse the repository at this point in the history
  • Loading branch information
agriyakhetarpal committed Nov 22, 2023
1 parent d5d22d2 commit e2d849d
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,7 @@ def run_coverage(session):
session.install("coverage", silent=False)
session.install("-e", ".[all]", silent=False)
if sys.platform != "win32":
session.install("-e", ".[odes]", silent=False)
session.install("-e", ".[jax]", silent=False)
session.install("-e", ".[odes,jax]", silent=False)
session.run("coverage", "run", "--rcfile=.coveragerc", "run-tests.py", "--nosub")
session.run("coverage", "combine")
session.run("coverage", "xml")
Expand Down Expand Up @@ -92,8 +91,7 @@ def run_unit(session):
set_environment_variables(PYBAMM_ENV, session=session)
session.install("-e", ".[all]", silent=False)
if sys.platform == "linux":
session.install("-e", ".[odes]", silent=False)
session.install("-e", ".[jax]", silent=False)
session.install("-e", ".[odes,jax]", silent=False)
session.run("python", "run-tests.py", "--unit")


Expand Down Expand Up @@ -139,8 +137,7 @@ def run_tests(session):
set_environment_variables(PYBAMM_ENV, session=session)
session.install("-e", ".[all]", silent=False)
if sys.platform == "linux" or sys.platform == "darwin":
session.install("-e", ".[odes]", silent=False)
session.install("-e", ".[jax]", silent=False)
session.install("-e", ".[odes, jax]", silent=False)
session.run("python", "run-tests.py", "--all")


Expand Down

0 comments on commit e2d849d

Please sign in to comment.