From 3f5ba7f3030138318e9f9c89670a69c684c33446 Mon Sep 17 00:00:00 2001 From: Alex Waygood Date: Sat, 5 Mar 2022 09:43:26 +0000 Subject: [PATCH] CI: Do not run mypy_primer on stubtest/stubgen PRs PRs that only affect stubtest or stubgen are never going to have any effect on mypy_primer's output, so we can safely skip the CI check for those PRs. The same goes for PRs that only alter files in the tests directory. --- .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 88500b698707..e65d918228b4 100644 --- a/.github/workflows/mypy_primer.yml +++ b/.github/workflows/mypy_primer.yml @@ -8,6 +8,10 @@ on: - '**/*.rst' - '**/*.md' - 'mypyc/**' + - 'mypy/stubtest.py' + - 'mypy/stubgen.py' + - 'mypy/stubgenc.py' + - 'mypy/test/**' jobs: mypy_primer: