Skip to content

Commit

Permalink
fix GH workflow message (#41413)
Browse files Browse the repository at this point in the history
  • Loading branch information
3nids committed Feb 15, 2021
1 parent fc67791 commit 9dd6a65
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .ci/ctest2ci.py
Expand Up @@ -33,8 +33,10 @@
import re
import subprocess
from termcolor import colored
import string

fold_stack = list()
printable = set(string.printable)


def start_fold(tag):
Expand Down Expand Up @@ -73,6 +75,8 @@ def start_test_fold():

for line in p.stdout:
updated_line = line.decode('utf-8')
# remove non printable characters https://stackoverflow.com/a/8689826/1548052
filter(lambda x: x in printable, updated_line)
if re.match('Run dashboard with model Experimental', updated_line):
start_fold('build')
updated_line = '{title}\n{line}'.format(title=colored('Running tests...', 'yellow', attrs=['bold']),
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/run-tests.yml
Expand Up @@ -12,6 +12,7 @@ on:
- 'CMakeLists.txt'
- '.github/workflows/**'
- '.docker/**'
- '.ci/**'
pull_request:
branches:
- master
Expand All @@ -23,6 +24,7 @@ on:
- 'CMakeLists.txt'
- '.github/workflows/**'
- '.docker/**'
- '.ci/**'

jobs:
build:
Expand Down

0 comments on commit 9dd6a65

Please sign in to comment.