diff --git a/.github/workflows/test-suite.yml b/.github/workflows/test-suite.yml index 46c8e050e..ca4c39992 100644 --- a/.github/workflows/test-suite.yml +++ b/.github/workflows/test-suite.yml @@ -1,8 +1,12 @@ name: CORE Test Suite Validation + on: workflow_run: - workflows: ["Upload PR Artifact"] + workflows: ["Upload-PR-Artifact"] types: [completed] + branches: + - "**" + workflow_dispatch: inputs: pr_number: @@ -19,11 +23,10 @@ env: jobs: validate: runs-on: ubuntu-latest - # Only run if the workflow_run was successful or if manually triggered/pushed - if: | - github.event_name == 'push' || - github.event_name == 'workflow_dispatch' || - github.event.workflow_run.conclusion == 'success' + if: >- + github.event_name == 'push' || + github.event_name == 'workflow_dispatch' || + (github.event_name == 'workflow_run' && github.event.workflow_run.conclusion == 'success') steps: - name: Download PR engine artifact if: github.event_name == 'workflow_run' @@ -138,6 +141,7 @@ jobs: echo "Dask comparison completed successfully (no differences)" else echo "Dask comparison found differences" + fi - name: Generate dask comparison summary if: steps.dask_run.outputs.dask_success == 'true' diff --git a/.github/workflows/upload-pr-artifact.yml b/.github/workflows/upload-pr-artifact.yml index 69ea21610..7807fd00f 100644 --- a/.github/workflows/upload-pr-artifact.yml +++ b/.github/workflows/upload-pr-artifact.yml @@ -1,4 +1,4 @@ -name: Upload PR Artifact +name: Upload-PR-Artifact on: pull_request: branches: