diff --git a/.github/workflows/mypy_primer.yml b/.github/workflows/mypy_primer.yml index ea23cbe49..4e14b0c97 100644 --- a/.github/workflows/mypy_primer.yml +++ b/.github/workflows/mypy_primer.yml @@ -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 diff --git a/.github/workflows/mypy_primer_comment.yml b/.github/workflows/mypy_primer_comment.yml index 661f4cd42..04982e6a1 100644 --- a/.github/workflows/mypy_primer_comment.yml +++ b/.github/workflows/mypy_primer_comment.yml @@ -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