From bf7ba0113b33a1d352c2ad95ac37013c5e0d47b5 Mon Sep 17 00:00:00 2001 From: Sviatoslav Sydorenko Date: Tue, 28 May 2024 21:43:51 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=A8=20Colorize=20test=20output=20under?= =?UTF-8?q?=20`cibuildwheel`?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/ci.yaml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 52d243e4..cfa2bc22 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -293,6 +293,11 @@ jobs: CIBW_PRERELEASE_PYTHONS: 'True' CIBW_TEST_REQUIRES: pytest setuptools # 3.12+ no longer includes distutils, just always ensure setuptools is present CIBW_TEST_COMMAND: PYTHONUNBUFFERED=1 python -m pytest ${{ matrix.test_args || '{project}' }} # default to test all + COLOR: yes + FORCE_COLOR: 1 + MYPY_FORCE_COLOR: 1 + PRE_COMMIT_COLOR: always + PY_COLORS: 1 with: package-dir: >- ${{ steps.fetch_sdist.outputs.download-path @@ -409,7 +414,12 @@ jobs: CIBW_PRERELEASE_PYTHONS: 'True' CIBW_TEST_REQUIRES: pytest setuptools CIBW_TEST_COMMAND: pip install pip --upgrade; cd {project}; PYTHONUNBUFFERED=1 pytest + COLOR: yes + FORCE_COLOR: 1 MACOSX_DEPLOYMENT_TARGET: ${{ matrix.deployment_target || '10.9' }} + MYPY_FORCE_COLOR: 1 + PRE_COMMIT_COLOR: always + PY_COLORS: 1 SDKROOT: ${{ matrix.sdkroot || 'macosx' }} with: package-dir: >- @@ -501,6 +511,11 @@ jobs: CIBW_TEST_COMMAND: 'python -m pytest {package}/src/c' # FIXME: /testing takes ~45min on Windows and has some failures... # CIBW_TEST_COMMAND='python -m pytest {package}/src/c {project}/testing' + COLOR: yes + FORCE_COLOR: 1 + MYPY_FORCE_COLOR: 1 + PRE_COMMIT_COLOR: always + PY_COLORS: 1 with: package-dir: >- ${{ steps.fetch_sdist.outputs.download-path