mypy_primer: add to CI (#9686)
This will run mypy_primer on mypy PRs. Changes on the open source
corpus are reported as comments on the PR.
We integrated this into typeshed CI; you can see examples here:
https://github.com/python/typeshed/pull/3183
https://github.com/python/typeshed/pull/4734
This might be a little slow. On typeshed this runs in 10 minutes, but
it's using a mypyc compiled wheel. It looks like it takes three minutes
to compile a MYPYC_OPT_LEVEL=0 wheel in our CI currently (for a ~2x
speedup), so that's probably worth it.
Co-authored-by: hauntsaninja <>