From eadb35e6200dd34173ec226431f43456ccfae04b Mon Sep 17 00:00:00 2001 From: Alex Waygood Date: Tue, 17 May 2022 14:03:58 +0100 Subject: [PATCH] Don't run mypy_primer on changes to test files (#7854) Only changes to files in `stdlib` or `stubs` will ever have any effect on the checked open-source code. But also run primer on changes to files in `.github/workflows` so that we can see the effect of changes to the `mypy_primer.yml` file itself. --- .github/workflows/mypy_primer.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/mypy_primer.yml b/.github/workflows/mypy_primer.yml index b6ed87e05..031ac68cc 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: + paths: + - 'stdlib/**' + - 'stubs/**' + - '.github/workflows/**' jobs: mypy_primer: