Skip to content

Commit

Permalink
chore: Add CI benchmark on merge
Browse files Browse the repository at this point in the history
  • Loading branch information
coastalwhite committed Oct 29, 2024
1 parent 60d0721 commit 17a48e0
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions .github/workflows/benchmark-remote.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,22 @@ name: Remote Benchmark

on:
workflow_dispatch:
push:
branches:
- 'main'
pull_request:
types: [ labeled ]

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
cancel-in-progress: ${{ github.event.label.name == 'needs-bench' }}

env:
SCALE_FACTOR: '10.0'

jobs:
main:
if: ${{ github.event.label.name == 'needs-bench' }}
if: ${{ github.ref == 'refs/heads/main' || github.event.label.name == 'needs-bench' }}
runs-on: self-hosted
steps:
- uses: actions/checkout@v4
Expand Down Expand Up @@ -63,3 +66,9 @@ jobs:
working-directory: polars-benchmark
run: |
make run-polars-no-env
- name: Cache the Polars build
if: ${{ github.ref == 'refs/heads/main' }}
working-directory: py-polars
run: |
"$HOME/py-polars-cache/cache-build.sh" "$PWD/polars"

0 comments on commit 17a48e0

Please sign in to comment.