Skip CI expensive checks on CODEOWNERS
update (#128754)
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
This commit is contained in:
parent
06cad77a5b
commit
99327d1241
17
.github/workflows/reusable-change-detection.yml
vendored
17
.github/workflows/reusable-change-detection.yml
vendored
@ -83,7 +83,22 @@ jobs:
|
|||||||
# into the PR branch anyway.
|
# into the PR branch anyway.
|
||||||
#
|
#
|
||||||
# https://github.com/python/core-workflow/issues/373
|
# https://github.com/python/core-workflow/issues/373
|
||||||
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
|
grep_ignore_args=(
|
||||||
|
# file extensions
|
||||||
|
-e '\.md$'
|
||||||
|
-e '\.rst$'
|
||||||
|
# top-level folders
|
||||||
|
-e '^Doc/'
|
||||||
|
-e '^Misc/'
|
||||||
|
# configuration files
|
||||||
|
-e '^\.github/CODEOWNERS$'
|
||||||
|
-e '^\.pre-commit-config\.yaml$'
|
||||||
|
-e '\.ruff\.toml$'
|
||||||
|
-e 'mypy\.ini$'
|
||||||
|
)
|
||||||
|
git diff --name-only "origin/$GITHUB_BASE_REF.." \
|
||||||
|
| grep -qvE "${grep_ignore_args[@]}" \
|
||||||
|
&& echo "run-tests=true" >> "$GITHUB_OUTPUT" || true
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Check if we should run hypothesis tests
|
# Check if we should run hypothesis tests
|
||||||
|
Loading…
x
Reference in New Issue
Block a user