From 4b1a75707b4e6441021e0c95da1c0ec79c6ab128 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Edouard=20Choini=C3=A8re?= <27212526+echoix@users.noreply.github.com> Date: Mon, 29 Apr 2024 11:01:46 -0400 Subject: [PATCH] pytest: Enhance logging output with colors and summary (#3629) --- .github/workflows/pytest.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/pytest.yml b/.github/workflows/pytest.yml index 03cf1e92133..df911a87115 100644 --- a/.github/workflows/pytest.yml +++ b/.github/workflows/pytest.yml @@ -8,8 +8,6 @@ on: - releasebranch_* pull_request: branches: - - main - - releasebranch_* jobs: pytest: @@ -29,6 +27,9 @@ jobs: fail-fast: true runs-on: ${{ matrix.os }} + env: + FORCE_COLOR: 1 # for software including pip: https://force-color.org/ + CLICOLOR_FORCE: 1 # for other software including ninja: https://bixense.com/clicolors/ steps: - uses: actions/checkout@1d96c772d19495a3b5c517cd2bc0cb401ea0529f # v4.1.3 @@ -75,7 +76,7 @@ jobs: run: | export PYTHONPATH=`grass --config python_path`:$PYTHONPATH export LD_LIBRARY_PATH=$HOME/install/grass84/lib:$LD_LIBRARY_PATH - pytest --numprocesses auto . + pytest --verbose --color=yes --durations=0 --durations-min=0.5 --numprocesses auto -ra . - name: Print installed versions if: always()