Skip to content

Commit 7710cd6

Browse files
committed
Allow the benchmark noxenv to run against any installable.
1 parent c84134b commit 7710cd6

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

noxfile.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -229,18 +229,19 @@ def docs_style(session):
229229

230230

231231
@session(default=False)
232+
@nox.parametrize("installable", INSTALLABLE)
232233
@nox.parametrize(
233234
"benchmark",
234235
[
235236
nox.param(each.stem, id=each.stem)
236237
for each in BENCHMARKS.glob("[!_]*.py")
237238
],
238239
)
239-
def bench(session, benchmark):
240+
def bench(session, installable, benchmark):
240241
"""
241242
Run a performance benchmark.
242243
"""
243-
session.install("pyperf", f"{ROOT}[format]")
244+
session.install("pyperf", installable)
244245
tmpdir = Path(session.create_tmp())
245246
output = tmpdir / f"bench-{benchmark}.json"
246247
session.run("python", BENCHMARKS / f"{benchmark}.py", "--output", output)

0 commit comments

Comments
 (0)