Initial commit
This commit is contained in:
commit
b1a1a6866d
23 changed files with 495 additions and 0 deletions
17
nox_actions/codetest.py
Normal file
17
nox_actions/codetest.py
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
# Import built-in modules
|
||||
import os
|
||||
|
||||
# Import third-party modules
|
||||
import nox
|
||||
from nox_actions.utils import PACKAGE_NAME
|
||||
from nox_actions.utils import THIS_ROOT
|
||||
|
||||
|
||||
def pytest(session: nox.Session) -> None:
|
||||
session.install(".")
|
||||
session.install("pytest", "pytest_cov", "pytest_mock")
|
||||
test_root = os.path.join(THIS_ROOT, "tests")
|
||||
session.run("pytest", f"--cov={PACKAGE_NAME}",
|
||||
"--cov-report=xml:coverage.xml",
|
||||
f"--rootdir={test_root}",
|
||||
env={"PYTHONPATH": THIS_ROOT.as_posix()})
|
||||
Loading…
Add table
Add a link
Reference in a new issue