From 3464e486433e45536e006e614a73967f77d3fd13 Mon Sep 17 00:00:00 2001 From: Dongdong Tian Date: Thu, 21 Mar 2024 08:35:42 +0800 Subject: [PATCH] Revert "CI: Run benchmarks if PR is labeled with "run/benchmark" (#2958)" This reverts commit ecefd5315b44ac75ab5f84ab022190c5fede0f59. --- .github/workflows/benchmarks.yml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/workflows/benchmarks.yml b/.github/workflows/benchmarks.yml index 7d052f9ed0e..1eda0d8cbdc 100644 --- a/.github/workflows/benchmarks.yml +++ b/.github/workflows/benchmarks.yml @@ -12,9 +12,8 @@ on: paths: - 'pygmt/**/*.py' - '.github/workflows/benchmarks.yml' - # Run in PRs but only if the PR has the 'run/benchmark' label - pull_request: - types: [ opened, reopened, labeled, synchronize ] + # Uncomment the 'pull_request' line below to trigger the workflow in PR + # pull_request: # `workflow_dispatch` allows CodSpeed to trigger backtest # performance analysis in order to generate initial data. workflow_dispatch: @@ -29,7 +28,7 @@ concurrency: jobs: benchmarks: runs-on: ubuntu-22.04 - if: github.repository == 'GenericMappingTools/pygmt' && (github.event_name != 'pull_request' || contains(github.event.pull_request.labels.*.name, 'run/benchmark')) + if: github.repository == 'GenericMappingTools/pygmt' defaults: run: shell: bash -l {0}