From 1096527ee605e359646c7d6bc878f58ba3ad2695 Mon Sep 17 00:00:00 2001 From: hauntsaninja <> Date: Mon, 10 May 2021 20:26:43 -0700 Subject: [PATCH] Only run mypy primer workflows on stdlib --- .github/workflows/mypy_primer.yml | 4 ++++ .github/workflows/mypy_primer_comment.yml | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/.github/workflows/mypy_primer.yml b/.github/workflows/mypy_primer.yml index 5df5f9a2381b..3a0b9f4b7876 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 20963906c7c1..8a907b19e4b7 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