Skip to content

Commit 26b4f18

Browse files
committed
🎨 Colorize test output under cibuildwheel
1 parent 4314e7b commit 26b4f18

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

.github/workflows/ci.yaml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -293,6 +293,11 @@ jobs:
293293
CIBW_PRERELEASE_PYTHONS: 'True'
294294
CIBW_TEST_REQUIRES: pytest setuptools # 3.12+ no longer includes distutils, just always ensure setuptools is present
295295
CIBW_TEST_COMMAND: PYTHONUNBUFFERED=1 python -m pytest ${{ matrix.test_args || '{project}' }} # default to test all
296+
COLOR: yes
297+
FORCE_COLOR: 1
298+
MYPY_FORCE_COLOR: 1
299+
PRE_COMMIT_COLOR: always
300+
PY_COLORS: 1
296301
with:
297302
package-dir: >-
298303
${{ steps.fetch_sdist.outputs.download-path
@@ -409,7 +414,12 @@ jobs:
409414
CIBW_PRERELEASE_PYTHONS: 'True'
410415
CIBW_TEST_REQUIRES: pytest setuptools
411416
CIBW_TEST_COMMAND: pip install pip --upgrade; cd {project}; PYTHONUNBUFFERED=1 pytest
417+
COLOR: yes
418+
FORCE_COLOR: 1
412419
MACOSX_DEPLOYMENT_TARGET: ${{ matrix.deployment_target || '10.9' }}
420+
MYPY_FORCE_COLOR: 1
421+
PRE_COMMIT_COLOR: always
422+
PY_COLORS: 1
413423
SDKROOT: ${{ matrix.sdkroot || 'macosx' }}
414424
with:
415425
package-dir: >-
@@ -501,6 +511,11 @@ jobs:
501511
CIBW_TEST_COMMAND: 'python -m pytest {package}/src/c'
502512
# FIXME: /testing takes ~45min on Windows and has some failures...
503513
# CIBW_TEST_COMMAND='python -m pytest {package}/src/c {project}/testing'
514+
COLOR: yes
515+
FORCE_COLOR: 1
516+
MYPY_FORCE_COLOR: 1
517+
PRE_COMMIT_COLOR: always
518+
PY_COLORS: 1
504519
with:
505520
package-dir: >-
506521
${{ steps.fetch_sdist.outputs.download-path

0 commit comments

Comments
 (0)