From 330278df875d94a3eff71d908174616ba93036a8 Mon Sep 17 00:00:00 2001 From: Marcel Zwiers Date: Sun, 12 Nov 2023 19:36:57 +0100 Subject: [PATCH] CI fix? --- .github/workflows/tests.yaml | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index bfcee8ab..f684f4e7 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -46,12 +46,8 @@ jobs: Add-Content $env:GITHUB_PATH "${{ github.workspace }}/dcm2niix_win/" - name: Tests with pytest - if: runner.os == 'Windows' run: | - pytest tests - - - name: Tests with pytest - if: runner.os != 'Windows' - run: | - export DUECREDIT_ENABLE=yes + if [ "$RUNNER_OS" == "Linux" ] || [ "$RUNNER_OS" == "macOS" ]; then + export DUECREDIT_ENABLE=yes + fi pytest tests