@@ -54,6 +54,7 @@ def tests(session: nox.Session) -> None:
5454 "--cov-config" ,
5555 "pyproject.toml" ,
5656 "--cov-report=" ,
57+ "--numprocesses=auto" ,
5758 * session .posargs ,
5859 env = {
5960 "COVERAGE_FILE" : coverage_file ,
@@ -87,7 +88,7 @@ def conda_tests(session: nox.Session) -> None:
8788 # Currently, this doesn't work on Windows either with or without quoting
8889 if not sys .platform .startswith ("win32" ):
8990 session .conda_install ("requests<99" )
90- session .run ("pytest" , * session .posargs )
91+ session .run ("pytest" , "--numprocesses=auto" , * session .posargs )
9192
9293
9394@nox .session (venv_backend = "mamba" , default = shutil .which ("mamba" ))
@@ -99,7 +100,7 @@ def mamba_tests(session: nox.Session) -> None:
99100 session .install ("-e." , "--no-deps" )
100101 if not sys .platform .startswith ("win32" ):
101102 session .conda_install ("requests<99" )
102- session .run ("pytest" , * session .posargs )
103+ session .run ("pytest" , "--numprocesses=auto" , * session .posargs )
103104
104105
105106@nox .session (venv_backend = "micromamba" , default = shutil .which ("micromamba" ))
@@ -112,7 +113,7 @@ def micromamba_tests(session: nox.Session) -> None:
112113 session .install ("-e." , "--no-deps" )
113114 if not sys .platform .startswith ("win32" ):
114115 session .conda_install ("requests<99" )
115- session .run ("pytest" , * session .posargs )
116+ session .run ("pytest" , "--numprocesses=auto" , * session .posargs )
116117
117118
118119@nox .session (default = False )
0 commit comments