Skip to content

pytest: enable colored output in CI#757

Merged
raboof merged 1 commit intomainfrom
pytest-ci-colors
Apr 21, 2026
Merged

pytest: enable colored output in CI#757
raboof merged 1 commit intomainfrom
pytest-ci-colors

Conversation

@potiuk
Copy link
Copy Markdown
Member

@potiuk potiuk commented Apr 21, 2026

Summary

  • Pass --color=yes to pytest and export FORCE_COLOR=1 / PY_COLORS=1 in the pytest workflow so test output renders ANSI colors in the GitHub Actions log viewer.
  • Covers both pytest's own output and Rich-based output from code under test (e.g. verify-action-build).

Test plan

  • Confirm CI pytest job output shows colored pass/fail markers and colorized tracebacks/Rich output.

Generated-by: Claude Opus 4.7 (1M context)

Pass --color=yes to pytest and export FORCE_COLOR=1 / PY_COLORS=1
so pytest and Rich-based test output render ANSI colors in the
GitHub Actions log viewer, making failures easier to read.
@potiuk
Copy link
Copy Markdown
Member Author

potiuk commented Apr 21, 2026

Much nicer now:

image

@raboof raboof merged commit bdffe5b into main Apr 21, 2026
8 checks passed
@raboof raboof deleted the pytest-ci-colors branch April 21, 2026 18:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants