Skip to content
forked from pydata/xarray

Commit

Permalink
Only run asv benchmark when labeled (pydata#5893)
Browse files Browse the repository at this point in the history
* Only run benchmark when labeled

* Update benchmarks.yml

* Update benchmarks.yml
  • Loading branch information
Illviljan authored Oct 24, 2021
1 parent 26e2e61 commit fdabf3b
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions .github/workflows/benchmarks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,7 @@ on:

jobs:
benchmark:
if: |
${{ contains( github.event.pull_request.labels.*.name, 'run-benchmark')
&& github.event_name == 'pull_request'
|| github.event_name == 'workflow_dispatch' }}
if: ${{ contains( github.event.pull_request.labels.*.name, 'run-benchmark') && github.event_name == 'pull_request' || github.event_name == 'workflow_dispatch' }}
name: Linux
runs-on: ubuntu-20.04
env:
Expand Down

0 comments on commit fdabf3b

Please sign in to comment.