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

@@ -191,11 +191,6 @@ cypress-run-all() {
cypress-run "*/**/*"
# Upload code coverage separately so each page can have separate flags
# -c will clean existing coverage reports, -F means add flags
# || true to prevent CI failure on codecov upload
codecov -cF "cypress" || true
# After job is done, print out Flask log for debugging
say "::group::Flask log for default run"
cat "$flasklog"
@@ -211,8 +206,10 @@ cypress-run-all() {
cypress-run "sqllab/*" "Backend persist"
# Upload code coverage separately so each page can have separate flags
# -c will clean existing coverage reports, -F means add flags
# || true to prevent CI failure on codecov upload
codecov -cF "cypress" || true
codecov -c -F "cypress" || true
say "::group::Flask log for backend persist"
cat "$flasklog"