There was an error while loading. Please reload this page.
1 parent c84134b commit 7710cd6Copy full SHA for 7710cd6
noxfile.py
@@ -229,18 +229,19 @@ def docs_style(session):
229
230
231
@session(default=False)
232
+@nox.parametrize("installable", INSTALLABLE)
233
@nox.parametrize(
234
"benchmark",
235
[
236
nox.param(each.stem, id=each.stem)
237
for each in BENCHMARKS.glob("[!_]*.py")
238
],
239
)
-def bench(session, benchmark):
240
+def bench(session, installable, benchmark):
241
"""
242
Run a performance benchmark.
243
- session.install("pyperf", f"{ROOT}[format]")
244
+ session.install("pyperf", installable)
245
tmpdir = Path(session.create_tmp())
246
output = tmpdir / f"bench-{benchmark}.json"
247
session.run("python", BENCHMARKS / f"{benchmark}.py", "--output", output)
0 commit comments