Skip to content

Commit e88aa22

Browse files
committed
coverage
1 parent f6ba1fd commit e88aa22

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

noxfile_cov.py

+8-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,14 @@
11
import nox
22

33

4-
@nox.session(python="3.9")
4+
@nox.session(python=["3.10"])
5+
def tests(session):
6+
args = session.posargs or ["--cov"]
7+
session.install(".", "pytest", "pytest-cov", "coverage[toml]")
8+
session.run("pytest", *args)
9+
10+
11+
@nox.session(python="3.10")
512
def coverage(session) -> None:
613
"""Upload coverage data."""
714
session.install("coverage[toml]", "codecov")

0 commit comments

Comments
 (0)