Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
with
6 additions
and
0 deletions.
-
+4
−0
.ci/ctest2ci.py
-
+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: |
|
|