File tree 1 file changed +16
-1
lines changed
1 file changed +16
-1
lines changed Original file line number Diff line number Diff line change 83
83
# into the PR branch anyway.
84
84
#
85
85
# 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
87
102
fi
88
103
89
104
# Check if we should run hypothesis tests
You can’t perform that action at this time.
0 commit comments