test: optimize codecov config (#13329)

* test: optimize codecov config to let GitHub checks always pass

* Run tests on workflow changes, too
This commit is contained in:
Jesse Yang
2021-02-25 03:22:34 -10:00
committed by GitHub
parent 94d0bb9e7f
commit d39bc14a0b
6 changed files with 16 additions and 14 deletions

View File

@@ -34,10 +34,10 @@ REGEXES=()
for CHECK in "$@"
do
if [[ ${CHECK} == "python" ]]; then
REGEX="(^tests\/|^superset\/|^setup\.py|^requirements\/.+\.txt)"
REGEX="(^\.github\/workflows\/.*python|^tests\/|^superset\/|^setup\.py|^requirements\/.+\.txt)"
echo "Searching for changes in python files"
elif [[ ${CHECK} == "frontend" ]]; then
REGEX="(^superset-frontend\/)"
REGEX="(^\.github\/workflows\/.*(frontend|e2e)|^superset-frontend\/)"
echo "Searching for changes in frontend files"
else
echo "Invalid check: \"${CHECK}\". Falling back to exiting with FAILURE code"