From 7206d5a4c1464d5b79afb9a291be1c1126075763 Mon Sep 17 00:00:00 2001 From: hauntsaninja <> Date: Sat, 24 Oct 2020 17:54:39 -0700 Subject: [PATCH 1/2] 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. --- runtests.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/runtests.py b/runtests.py index 34d0eb712125..4da68461afb0 100755 --- a/runtests.py +++ b/runtests.py @@ -79,6 +79,8 @@ MYPYC_EXTERNAL, MYPYC_COMMAND_LINE, ERROR_STREAM]), + # Test cases to run in typeshed CI + 'typeshed-ci': 'pytest -k "%s"' % ' or '.join([CMDLINE, EVALUATION, SAMPLES, TYPESHED]), # Mypyc tests that aren't run by default, since they are slow and rarely # fail for commits that don't touch mypyc 'mypyc-extra': 'pytest -k "%s"' % ' or '.join(MYPYC_OPT_IN), From 6b2dc28d01c01619a5e3c91d6e6de76a597654f4 Mon Sep 17 00:00:00 2001 From: hauntsaninja <> Date: Tue, 27 Oct 2020 14:09:25 -0700 Subject: [PATCH 2/2] remove typeshed-ci from DEFAULT_COMMANDS --- runtests.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/runtests.py b/runtests.py index 4da68461afb0..03ef378309b3 100755 --- a/runtests.py +++ b/runtests.py @@ -90,7 +90,7 @@ # Stop run immediately if these commands fail FAST_FAIL = ['self', 'lint'] -DEFAULT_COMMANDS = [cmd for cmd in cmds if cmd != 'mypyc-extra'] +DEFAULT_COMMANDS = [cmd for cmd in cmds if cmd not in ('mypyc-extra', 'typeshed-ci')] assert all(cmd in cmds for cmd in FAST_FAIL)