From 75de6e8259890e1bcaf17b57ee91742f40b936e9 Mon Sep 17 00:00:00 2001 From: Joey Parrish Date: Tue, 29 Aug 2023 10:19:35 -0700 Subject: [PATCH] ci: Fix incremental coverage reports (#5552) --- .github/workflows/compute-incremental-coverage.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/compute-incremental-coverage.py b/.github/workflows/compute-incremental-coverage.py index 523d9c3eb3..dbb835f7a9 100755 --- a/.github/workflows/compute-incremental-coverage.py +++ b/.github/workflows/compute-incremental-coverage.py @@ -24,6 +24,9 @@ # TODO(joeyparrish): Figure out how to get karma to output relative paths only. def StripGitDir(path): + # Convert Windows-style paths to Unix-style paths so we can read coverage + # data from Windows runners, too. + path = path.replace('\\', '/') # Strip the path to the git clone, leaving only the source path within the # repo. return re.sub(r'.*?/(lib|ui)/', r'\1/', path)