Skip to content

Commit

Permalink
chore: add hist session to noxfile
Browse files Browse the repository at this point in the history
  • Loading branch information
henryiii committed Feb 16, 2022
1 parent 32ad9e6 commit 41515e6
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,28 @@ def tests(session: nox.Session) -> None:
session.run("pytest", *session.posargs)


@nox.session
def hist(session: nox.Session) -> None:
"""
Run Hist's test suite
"""
shutil.rmtree("build", ignore_errors=True)
session.install(".")
tmpdir = session.create_tmp()
session.chdir(tmpdir)
session.run("git", "clone", "https://github.com/scikit-hep/hist", external=True)
session.chdir("hist")
with open("setup.cfg", encoding="utf-8") as f:
lines = f.readlines()
with open("setup.cfg", "w", encoding="utf-8") as f:
for line in lines:
if "boost-histogram" not in line:
f.write(line)

session.install(".[test,plot]")
session.run("pytest", *session.posargs)


@nox.session
def docs(session: nox.Session) -> None:
"""
Expand Down

0 comments on commit 41515e6

Please sign in to comment.