diff --git a/cibuildwheel/logger.py b/cibuildwheel/logger.py index c2b90775d..0f7df826c 100644 --- a/cibuildwheel/logger.py +++ b/cibuildwheel/logger.py @@ -242,11 +242,11 @@ def print_summary(self, *, options: "Options") -> Generator[None, None, None]: github_summary = self._github_step_summary(duration=duration, options=options) Path(summary_path).write_text(filter_ansi_codes(github_summary), encoding="utf-8") - n = len(self.summary) - s = "s" if n > 1 else "" + n_wheels = len([info for info in self.summary if not info.filename]) + s = "s" if n_wheels > 1 else "" duration_str = humanize.naturaldelta(duration) print() - self._start_fold_group(f"{n} wheel{s} produced in {duration_str}") + self._start_fold_group(f"{n_wheels} wheel{s} produced in {duration_str}") for build_info in self.summary: print(" ", build_info) self._end_fold_group() @@ -320,7 +320,7 @@ def _github_step_summary(self, duration: float, options: "Options") -> str: n_wheels = len([b for b in self.summary if b.filename]) wheel_rows = "\n".join( "" - f"{'' + b.filename.name + '' if b.filename else '*Build only*'}" + f"{'' + b.filename.name + '' if b.filename else '*Test only*'}" f"{b.size or 'N/A'}" f"{b.identifier}" f"{humanize.naturaldelta(b.duration)}" diff --git a/unit_test/wheel_print_test.py b/unit_test/wheel_print_test.py index 9fd8dfcc5..a7989f668 100644 --- a/unit_test/wheel_print_test.py +++ b/unit_test/wheel_print_test.py @@ -25,7 +25,7 @@ def test_printout_wheels(capsys): assert "id1" in captured.out assert "id2" in captured.out - assert "wheels produced in" in captured.out + assert "1 wheel produced in" in captured.out assert "SHA256=" in captured.out