From 695aeeb9e9c61850c2d84391551239b20251c1a0 Mon Sep 17 00:00:00 2001 From: Sina Atalay Date: Sat, 9 Mar 2024 19:04:26 +0100 Subject: [PATCH] workflows: update test.yaml --- .github/workflows/tests.yaml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index 12ca2bf..ae0a1ed 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -3,10 +3,9 @@ name: Tests # GitHub events that triggers the workflow: on: push: - branches: ["main", "dev", "v1"] + branches: ["main", "dev"] pull_request: - branches: ["main", "dev", "v1"] - workflow_call: + branches: ["main", "dev"] # The workflow: jobs: @@ -67,6 +66,8 @@ jobs: path: .coverage.${{ matrix.python-version }}.${{ matrix.os }} report-coverage: + # Run only if the workflow was triggered by a push event + if: github.event_name == 'push' name: Generate the coverage report needs: [test] runs-on: ubuntu-latest @@ -80,7 +81,7 @@ jobs: python-version: "3.12" - name: Download coverage files - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: coverage path: coverage