File tree Expand file tree Collapse file tree 1 file changed +16
-1
lines changed Expand file tree Collapse file tree 1 file changed +16
-1
lines changed Original file line number Diff line number Diff line change 8383 # into the PR branch anyway.
8484 #
8585 # https://github.com/python/core-workflow/issues/373
86- git diff --name-only "origin/$GITHUB_BASE_REF.." | grep -qvE '(\.rst$|^Doc|^Misc|^\.pre-commit-config\.yaml$|\.ruff\.toml$|\.md$|mypy\.ini$)' && echo "run-tests=true" >> "$GITHUB_OUTPUT" || true
86+ grep_ignore_args=(
87+ # file extensions
88+ -e '\.md$'
89+ -e '\.rst$'
90+ # top-level folders
91+ -e '^Doc/'
92+ -e '^Misc/'
93+ # configuration files
94+ -e '^\.github/CODEOWNERS$'
95+ -e '^\.pre-commit-config\.yaml$'
96+ -e '\.ruff\.toml$'
97+ -e 'mypy\.ini$'
98+ )
99+ git diff --name-only "origin/$GITHUB_BASE_REF.." \
100+ | grep -qvE "${grep_ignore_args[@]}" \
101+ && echo "run-tests=true" >> "$GITHUB_OUTPUT" || true
87102 fi
88103
89104 # Check if we should run hypothesis tests
You can’t perform that action at this time.
0 commit comments