From 603c37d037bc3f97665484b86ff62cd4e173844a Mon Sep 17 00:00:00 2001 From: keewis Date: Mon, 23 Nov 2020 17:33:30 +0100 Subject: [PATCH] clean up upstream-dev CI (#4599) * use tee to both print the output and log it to a file * reduce the verbosity * Update .github/workflows/upstream-dev-ci.yaml --- .github/workflows/upstream-dev-ci.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/upstream-dev-ci.yaml b/.github/workflows/upstream-dev-ci.yaml index 56995dd4524..f14e896fd6d 100644 --- a/.github/workflows/upstream-dev-ci.yaml +++ b/.github/workflows/upstream-dev-ci.yaml @@ -41,7 +41,8 @@ jobs: conda list - name: Run Tests run: | - python -m pytest --verbose -rf > output-${{ matrix.python-version }}-log + set -o pipefail + python -m pytest -rf | tee output-${{ matrix.python-version }}-log - name: Upload artifacts if: "failure()&&(github.event_name == 'schedule')&&(github.repository == 'pydata/xarray')" # Check the exit code of previous step