Skip to content

Commit

Permalink
🎨 Colorize test output under cibuildwheel
Browse files Browse the repository at this point in the history
  • Loading branch information
webknjaz committed May 28, 2024
1 parent 8e4cc87 commit bf7ba01
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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: >-
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit bf7ba01

Please sign in to comment.