Skip to content

Commit

Permalink
pybamm-team#3443 Add Windows support via nox
Browse files Browse the repository at this point in the history
  • Loading branch information
agriyakhetarpal authored and js1tr3 committed Aug 12, 2024
1 parent 913346f commit 296d17e
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ def run_coverage(session):
set_environment_variables(PYBAMM_ENV, session=session)
session.install("coverage", silent=False)
if sys.platform != "win32":
session.install("-e", ".[odes,jax]", silent=False)
session.install("-e", ".[odes]", silent=False)
session.run("coverage", "run", "--rcfile=.coveragerc", "run-tests.py", "--nosub")
session.run("coverage", "combine")
session.run("coverage", "xml")
Expand All @@ -88,9 +88,9 @@ def run_doctests(session):
def run_unit(session):
"""Run the unit tests."""
set_environment_variables(PYBAMM_ENV, session=session)
session.install("-e", ".[all]", silent=False)
session.install("-e", ".[all,jax]", silent=False)
if sys.platform == "linux":
session.install("-e", ".[odes,jax]", silent=False)
session.install("-e", ".[odes]", silent=False)
session.run("python", "run-tests.py", "--unit")


Expand Down Expand Up @@ -140,16 +140,16 @@ def set_dev(session):
external=True,
)
else:
session.run(python, "-m", "pip", "install", "-e", ".[all,dev]", external=True)
session.run(python, "-m", "pip", "install", "-e", ".[all,dev,jax]", external=True)


@nox.session(name="tests")
def run_tests(session):
"""Run the unit tests and integration tests sequentially."""
set_environment_variables(PYBAMM_ENV, session=session)
session.install("-e", ".[all]", silent=False)
session.install("-e", ".[all,jax]", silent=False)
if sys.platform == "linux" or sys.platform == "darwin":
session.install("-e", ".[odes, jax]", silent=False)
session.install("-e", ".[odes]", silent=False)
session.run("python", "run-tests.py", "--all")


Expand Down

0 comments on commit 296d17e

Please sign in to comment.