1
1
Fork 0
mirror of https://github.com/pypa/pip synced 2023-12-13 21:30:23 +01:00

Simple fixes to the coverage Nox session

This commit is contained in:
Diego Ramirez 2021-11-27 08:53:41 -06:00
parent 7c3fd811a6
commit 5c916121a9

View file

@ -225,14 +225,14 @@ def vendoring(session: nox.Session) -> None:
@nox.session
def coverage(session: nox.Session):
def coverage(session: nox.Session) -> None:
if not os.path.exists("./.coverage-output"):
os.mkdirs("./coverage-output")
session.run(
"pytest",
"--cov=pip",
"--cov-config=./setup.cfg"
env={
"--cov-config=./setup.cfg",
env = {
"COVERAGE_OUTPUT_DIR": "./coverage-output",
"COVERAGE_PROCESS_START": "./setup.cfg",
}