Skip to content

Commit 7f63b49

Browse files
authored
runtests.py: list tests to run in typeshed CI (#9638)
* runtests.py: add tests to run in typeshed CI Running a subset of tests will help speed up typeshed CI. I don't think typeshed really benefits from running all the other tests. Worst case if something breaks, it'll be caught when typeshed is synced in mypy. * remove typeshed-ci from DEFAULT_COMMANDS Co-authored-by: hauntsaninja <>
1 parent 22f5278 commit 7f63b49

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

runtests.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,8 @@
7474
MYPYC_EXTERNAL,
7575
MYPYC_COMMAND_LINE,
7676
ERROR_STREAM]),
77+
# Test cases to run in typeshed CI
78+
'typeshed-ci': 'pytest -k "%s"' % ' or '.join([CMDLINE, EVALUATION, SAMPLES, TYPESHED]),
7779
# Mypyc tests that aren't run by default, since they are slow and rarely
7880
# fail for commits that don't touch mypyc
7981
'mypyc-extra': 'pytest -k "%s"' % ' or '.join(MYPYC_OPT_IN),
@@ -82,7 +84,7 @@
8284
# Stop run immediately if these commands fail
8385
FAST_FAIL = ['self', 'lint']
8486

85-
DEFAULT_COMMANDS = [cmd for cmd in cmds if cmd != 'mypyc-extra']
87+
DEFAULT_COMMANDS = [cmd for cmd in cmds if cmd not in ('mypyc-extra', 'typeshed-ci')]
8688

8789
assert all(cmd in cmds for cmd in FAST_FAIL)
8890

0 commit comments

Comments
 (0)