Skip to content

Commit 329e958

Browse files
committed
Fix FORCE_COLOR
1 parent 70bd46d commit 329e958

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,8 +128,8 @@ jobs:
128128
name: ${{ matrix.name }}
129129
env:
130130
TOX_SKIP_MISSING_INTERPRETERS: False
131-
# Rich (pip)
132-
FORCE_COLOR: 1
131+
# Rich (pip) -- Disable color for windows + pytest
132+
FORCE_COLOR: ${{ !(startsWith(matrix.os, 'windows-') && startsWith(matrix.toxenv, 'py')) && 1 || 0 }}
133133
# Tox
134134
PY_COLORS: 1
135135
# Mypy (see https://github.com/python/mypy/issues/7771)

0 commit comments

Comments
 (0)