From 7c33f6bbafe97235829e7a995daceea03592a615 Mon Sep 17 00:00:00 2001 From: Francesco Ballarin Date: Thu, 16 Nov 2023 09:46:04 +0100 Subject: [PATCH] Only upload tutorials logs on failure --- .github/workflows/ci.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e3bf286..13f6354 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -91,6 +91,7 @@ jobs: run: | python3 -m pytest --tag-collapse --np=2 --durations=0 --durations-min=1.0 tutorials - name: Upload tutorials logs as an artifact in case of failure + if: failure() || cancelled() uses: actions/upload-artifact@v2 with: name: "tutorials-logs-${{ matrix.backend }}"