Skip to content

Commit c291217

Browse files
committed
fix: stdout and stderr weaving output on GitHub Actions
1 parent d922ab2 commit c291217

File tree

3 files changed

+9
-4
lines changed

3 files changed

+9
-4
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,12 @@ Note that the log for version before v0.1.1 may not be in the mentioned format.
99

1010
## [Unreleased]
1111

12+
## v0.1.2a4 - 2024-10-01
13+
14+
### Changed
15+
16+
- Force `sys.stdout` for `MinimalistTestRunner.stream` to prevent stdout and stderr weaving output on GitHub Actions.
17+
1218
## v0.1.2a3 - 2024-10-01
1319

1420
### Changed

grading_lib/VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.1.2a3
1+
0.1.2a4

grading_lib/cli/__init__.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,7 @@
88
import click
99

1010
from ..common import MinimalistTestResult, MinimalistTestRunner
11-
from ..util import (FindProblemList, get_problem_total_points,
12-
load_problems_metadata)
11+
from ..util import FindProblemList, get_problem_total_points, load_problems_metadata
1312
from .dev import dev
1413
from .internal import internal
1514

@@ -107,7 +106,7 @@ def grade_command(path: str | Path) -> None:
107106
importlib.invalidate_caches()
108107
mod = importlib.import_module("scripts.grade")
109108

110-
runner = MinimalistTestRunner(resultclass=MinimalistTestResult)
109+
runner = MinimalistTestRunner(stream=sys.stdout, resultclass=MinimalistTestResult)
111110
test_program = unittest.main(
112111
mod, testRunner=runner, argv=[sys.argv[0]], exit=False
113112
)

0 commit comments

Comments
 (0)