Skip to content

Commit

Permalink
Use [dev] extras for nox session invocations
Browse files Browse the repository at this point in the history
  • Loading branch information
agriyakhetarpal committed Feb 19, 2024
1 parent a6e32a1 commit 45df796
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 @@ -13,19 +13,17 @@

@nox.session
def unit(session):
session.install("-e", ".[all]", silent=False)
session.install("-e", ".[all,dev]", silent=False)
if PYBOP_SCHEDULED:
session.run("pip", "install", f"pybamm=={PYBAMM_VERSION}", silent=False)
session.install("pytest", "pytest-mock", silent=False)
session.run("pytest", "--unit")


@nox.session
def coverage(session):
session.install("-e", ".[all]", silent=False)
session.install("-e", ".[all,dev]", silent=False)
if PYBOP_SCHEDULED:
session.run("pip", "install", f"pybamm=={PYBAMM_VERSION}", silent=False)
session.install("pytest", "pytest-cov", "pytest-mock", silent=False)
session.run(
"pytest",
"--unit",
Expand All @@ -38,10 +36,9 @@ def coverage(session):
@nox.session
def notebooks(session):
"""Run the examples tests for Jupyter notebooks."""
session.install("-e", ".[all]", silent=False)
session.install("-e", ".[all,dev]", silent=False)
if PYBOP_SCHEDULED:
session.run("pip", "install", f"pybamm=={PYBAMM_VERSION}", silent=False)
session.install("pytest", "nbmake", silent=False)
session.run("pytest", "--nbmake", "--examples", "examples/", external=True)


Expand Down

0 comments on commit 45df796

Please sign in to comment.