Skip to content

Commit bdffe5b

Browse files
authored
pytest: enable colored output in CI (#757)
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.
1 parent c51b02d commit bdffe5b

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

.github/workflows/pytest.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@ jobs:
3535
- name: Run tests
3636
run: |
3737
pipx install uv
38-
uv run pytest
38+
uv run pytest --color=yes
3939
env:
4040
GH_TOKEN: ${{ github.token }}
41+
FORCE_COLOR: "1"
42+
PY_COLORS: "1"

0 commit comments

Comments
 (0)