diff --git a/CHANGELOG.md b/CHANGELOG.md index aa24ff6..30d0051 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,12 @@ Note that the log for version before v0.1.1 may not be in the mentioned format. ## [Unreleased] +## v0.1.2a4 - 2024-10-01 + +### Changed + +- Force `sys.stdout` for `MinimalistTestRunner.stream` to prevent stdout and stderr weaving output on GitHub Actions. + ## v0.1.2a3 - 2024-10-01 ### Changed diff --git a/grading_lib/VERSION b/grading_lib/VERSION index b7d9b23..2b66ed8 100644 --- a/grading_lib/VERSION +++ b/grading_lib/VERSION @@ -1 +1 @@ -0.1.2a3 \ No newline at end of file +0.1.2a4 \ No newline at end of file diff --git a/grading_lib/cli/__init__.py b/grading_lib/cli/__init__.py index 38427a1..8437410 100644 --- a/grading_lib/cli/__init__.py +++ b/grading_lib/cli/__init__.py @@ -8,8 +8,7 @@ import click from ..common import MinimalistTestResult, MinimalistTestRunner -from ..util import (FindProblemList, get_problem_total_points, - load_problems_metadata) +from ..util import FindProblemList, get_problem_total_points, load_problems_metadata from .dev import dev from .internal import internal @@ -107,7 +106,7 @@ def grade_command(path: str | Path) -> None: importlib.invalidate_caches() mod = importlib.import_module("scripts.grade") - runner = MinimalistTestRunner(resultclass=MinimalistTestResult) + runner = MinimalistTestRunner(stream=sys.stdout, resultclass=MinimalistTestResult) test_program = unittest.main( mod, testRunner=runner, argv=[sys.argv[0]], exit=False )