Skip to content

Commit

Permalink
fix: stdout and stderr weaving output on GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
krerkkiat committed Oct 1, 2024
1 parent d922ab2 commit c291217
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion grading_lib/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.1.2a3
0.1.2a4
5 changes: 2 additions & 3 deletions grading_lib/cli/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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
)
Expand Down

0 comments on commit c291217

Please sign in to comment.