Some simple tools for working with parsed Sensospot data.
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
import pathlib
|
|
|
|
import tempfile
|
|
|
|
|
|
|
|
import nox
|
|
|
|
|
|
|
|
|
|
|
|
@nox.session(python=["3.9", "3.10", "3.11"])
|
|
|
|
def tests(session):
|
|
|
|
session.install(".[test]")
|
|
|
|
|
|
|
|
session.run("pytest", *session.posargs)
|
|
|
|
|
|
|
|
|
|
|
|
@nox.session(python=["3.9", "3.10", "3.11"])
|
|
|
|
@nox.parametrize(
|
|
|
|
("repo", "test_dir"),
|
|
|
|
[
|
|
|
|
("https://git.sgbio.de/Safeguard/mbp_hyb_calls", "tests"),
|
|
|
|
],
|
|
|
|
)
|
|
|
|
def downstream(session, repo, test_dir):
|
|
|
|
session.install(".")
|
|
|
|
|
|
|
|
with tempfile.TemporaryDirectory() as tmpdir:
|
|
|
|
session.run("git", "clone", repo, tmpdir, external=True)
|
|
|
|
|
|
|
|
session.install(f"{tmpdir}[test]")
|
|
|
|
|
|
|
|
test_path = pathlib.Path(tmpdir) / test_dir
|
|
|
|
session.run("pytest", test_path)
|