From 0bd56c8a1faaf96ff60010b8bfb2770ad9d434f4 Mon Sep 17 00:00:00 2001 From: Jez Swann Date: Thu, 14 Mar 2024 09:36:51 +0000 Subject: [PATCH] Trying pipefail for pytest tee to work as expected --- .github/workflows/pytest.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/pytest.yml b/.github/workflows/pytest.yml index 18bffd3d..ee63035e 100644 --- a/.github/workflows/pytest.yml +++ b/.github/workflows/pytest.yml @@ -59,9 +59,9 @@ jobs: - name: Testing - Linux if: runner.os == 'Linux' run: | + set -o pipefail source /usr/local/Modules/init/sh - python -m pytest --cov=. --cov-report html -cov-config=jade.coveragerc | tee pytest_output.log - echo $? + pytest --cov=. --cov-report html -cov-config=jade.coveragerc | tee pytest_output.log # Activate environment and run pytest - name: Testing - Windows