From fce1b548be74f7c65f8e3645f2a2b46aeff0c5a8 Mon Sep 17 00:00:00 2001 From: Alex Waygood Date: Sat, 5 Mar 2022 11:10:47 +0000 Subject: [PATCH] CI: Do not run mypy_primer on stubtest/stubgen PRs (#12295) 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: