Skip to content

Commit

Permalink
pytest: Enhance logging output with colors and summary (#3629)
Browse files Browse the repository at this point in the history
  • Loading branch information
echoix authored Apr 29, 2024
1 parent 5cb708e commit 4b1a757
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/pytest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ on:
- releasebranch_*
pull_request:
branches:
- main
- releasebranch_*

jobs:
pytest:
Expand All @@ -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
Expand Down Expand Up @@ -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()
Expand Down

0 comments on commit 4b1a757

Please sign in to comment.