From 8be34141e67814e3018a6739b1941cf3c9ed89d2 Mon Sep 17 00:00:00 2001 From: Justus Magin Date: Sun, 23 Jun 2024 18:34:37 +0200 Subject: [PATCH] colorize the `pytest` output (#265) set `FORCE_COLOR` to force `pytest` to output colors --- .github/workflows/ci-additional.yml | 3 +++ .github/workflows/ci.yml | 3 +++ .github/workflows/nightly.yml | 3 +++ 3 files changed, 9 insertions(+) diff --git a/.github/workflows/ci-additional.yml b/.github/workflows/ci-additional.yml index e6b52c09..d5f1b4cb 100644 --- a/.github/workflows/ci-additional.yml +++ b/.github/workflows/ci-additional.yml @@ -23,6 +23,9 @@ jobs: matrix: python-version: ["3.12"] + env: + FORCE_COLOR: 3 + steps: - name: checkout uses: actions/checkout@v4 diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 684a7c4b..0c90c2d6 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -36,6 +36,9 @@ jobs: run: shell: bash -l {0} + env: + FORCE_COLOR: 3 + if: | always() && github.repository == 'xarray-contrib/pint-xarray' diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml index f595ee36..8a70abbb 100644 --- a/.github/workflows/nightly.yml +++ b/.github/workflows/nightly.yml @@ -58,6 +58,9 @@ jobs: outputs: artifacts_availability: ${{ steps.status.outputs.ARTIFACTS_AVAILABLE }} + env: + FORCE_COLOR: 3 + steps: - name: checkout the repository uses: actions/checkout@v4