Skip to content

Commit be6db9f

Browse files
committed
build: exclude packages in _tools from test coverage calculation
1 parent b69384d commit be6db9f

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/scripts/run_tests_coverage

100644100755
Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,8 +144,10 @@ compare_cov() {
144144
main() {
145145
start_heartbeat "${heartbeat_interval}"
146146

147-
# Only keep files which reside in package directories:
148-
changed=$(echo "${changed}" | tr ' ' '\n' | grep '^lib/node_modules/@stdlib') || true
147+
# Only keep files which reside in package directories, but exclude _tools:
148+
changed=$(echo "${changed}" | tr ' ' '\n' | \
149+
grep '^lib/node_modules/@stdlib' | \
150+
grep -v '^lib/node_modules/@stdlib/_tools') || true
149151

150152
# Find unique package directories:
151153
directories=$(echo "${changed}" | tr ' ' '\n' | sed -E 's/\/(benchmark|bin|data|docs|etc|examples|include|lib|scripts|src|test)(\/.*)?\/?$//' | uniq)

0 commit comments

Comments
 (0)