Skip to content

Commit

Permalink
chrore: noxfile (#29)
Browse files Browse the repository at this point in the history
  • Loading branch information
FBruzzesi authored Jun 14, 2024
1 parent 4757e3b commit 4496694
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions noxfile.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
import nox
from nox.sessions import Session

nox.options.default_venv_backend = "uv"
nox.options.reuse_venv = True

PYTHON_VERSIONS = ["3.10", "3.11", "3.12"]


@nox.session(python=PYTHON_VERSIONS) # type: ignore[misc]
@nox.parametrize("pre", [False, True])
def pytest_coverage(session: Session, pre: bool) -> None:
"""Run pytest coverage across different python versions."""
pkg_install = [".[all]", "-r", "requirements/test.txt"]

if pre:
pkg_install.append("--pre")

session.install(*pkg_install)

session.run("pytest", "tests", "--cov=sksmithy", "--cov=tests", "--cov-fail-under=90", "--numprocesses=auto")

0 comments on commit 4496694

Please sign in to comment.