Skip to content
Permalink
Browse files

fix GH workflow message (#41413)

  • Loading branch information
3nids committed Feb 8, 2021
1 parent 7ab478b commit 143406e228f733cffa8f56b1d3fb228ddab3796f
Showing with 6 additions and 0 deletions.
  1. +4 −0 .ci/ctest2ci.py
  2. +2 −0 .github/workflows/run-tests.yml
@@ -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):
@@ -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']),
@@ -12,6 +12,7 @@ on:
- 'CMakeLists.txt'
- '.github/workflows/**'
- '.docker/**'
- '.ci/**'
pull_request:
branches:
- master
@@ -23,6 +24,7 @@ on:
- 'CMakeLists.txt'
- '.github/workflows/**'
- '.docker/**'
- '.ci/**'

jobs:
build:

0 comments on commit 143406e

Please sign in to comment.