Only run mypy primer workflows on stdlib (#5407)

Co-authored-by: hauntsaninja <>
This commit is contained in:
Shantanu
2021-05-10 23:21:25 -07:00
committed by GitHub
parent a91c89ea94
commit ee8364c216
2 changed files with 8 additions and 0 deletions

View File

@@ -3,6 +3,10 @@ name: Run mypy_primer
on:
# Only run on PR, since we diff against master
pull_request:
# Since modular typeshed, mypy primer doesn't check third party stubs. Till that is changed,
# only run it on stdlib changes to avoid false confidence and wasted CI minutes.
paths:
- stdlib
permissions:
contents: read

View File

@@ -7,6 +7,10 @@ on:
# each other, so the approach here is to poll for workflow runs, find the mypy_primer run for our
# commit, wait till it's completed, and download and post the diff.
pull_request_target:
# Since modular typeshed, mypy primer doesn't check third party stubs. Till that is changed,
# only run it on stdlib changes to avoid false confidence and wasted CI minutes.
paths:
- stdlib
permissions:
contents: read