Benchmarks #1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Benchmarks | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: "0 0 1 * *" | |
defaults: | |
run: | |
shell: bash -el {0} | |
jobs: | |
run_benchmarks: | |
name: Run benchmarks | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout branch | |
uses: actions/checkout@v4 | |
- name: Set up pixi | |
uses: prefix-dev/[email protected] | |
- name: Install repository | |
run: | | |
pixi run -e default postinstall | |
pixi run -e default python benchmarks/benchmark.py | |
- name: Update readme.md | |
run: | | |
line_number=`grep "| T-learner" benchmarks/readme.md -n | cut -f1 -d:` | |
head -n $(($line_number -1)) benchmarks/readme.md > benchmarks/new_readme.md | |
cat benchmarks/comparison.md >> benchmarks/new_readme.md | |
mv benchmarks/new_readme.md benchmarks/readme.md | |
- name: Create PR | |
uses: peter-evans/create-pull-request@v6 | |
with: | |
commit-message: Auto-update benchmarks/readme.md | |
title: Auto-update benchmarks/readme.md | |
body: | | |
Update benchmarks/readme.md. | |
Remember to update the corresponding values in `tests/test_learner.py`. | |
branch: update-benchmarks | |
delete-branch: true | |
add-paths: benchmarks/readme.md | |
draft: true |