Skip to content

Commit f5b343f

Browse files
committed
Exclude doc from benched environments
1 parent 2f90515 commit f5b343f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tasks.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,9 @@ def benchmark(ctx, max_time=2, save=False, compare=False, histogram=False, profi
5757
)
5858
cmd = 'pytest tests/benchmarks {0}'.format(kwargs)
5959
if tox:
60-
cmd = 'tox -- {0}'.format(cmd)
60+
envs = lrun('tox -l', hide=True).stdout.splitlines()
61+
envs = ','.join(e for e in envs if e != 'doc')
62+
cmd = 'tox -e {envs} -- {cmd}'.format(envs=envs, cmd=cmd)
6163
lrun(cmd, pty=True)
6264

6365

0 commit comments

Comments
 (0)