Skip to content

Commit 97dd1fe

Browse files
committed
Save benchmarks with pixi task
1 parent 59b9048 commit 97dd1fe

3 files changed

Lines changed: 6 additions & 4 deletions

File tree

.github/workflows/benchmarks.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,11 +55,10 @@ jobs:
5555
manifest-path: pixi.toml
5656
# TODO: Remove this when we do not have self-hosted runners in the public repo
5757
pixi-bin-path: ~/actions-runner/.pixi/bin/pixi
58-
- name: Build and test
58+
- name: Build and benchmark
5959
run: |
6060
pixi run install_all
61-
- name: Run python benchmarks
62-
run: pytest benchmarks/ --benchmark-json pytest_benchmarks.json
61+
pixi run test_benchmarks
6362
- name: Store benchmark results
6463
uses: benchmark-action/github-action-benchmark@v1
6564
with:

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,6 @@
77
# pixi environments
88
.pixi
99
*.egg-info
10+
11+
# Benchmarking results
12+
pytest_benchmarks.json

pixi.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ test_cpp = { depends-on = [
180180
{ task = "test", args = ["roboplan_toppra"] },
181181
] }
182182
test_all = { depends-on = ["test_py", "test_cpp"] }
183-
test_benchmarks = { cmd = "pytest benchmarks/" }
183+
test_benchmarks = { cmd = "pytest benchmarks/ --benchmark-json pytest_benchmarks.json" }
184184

185185
[dependencies]
186186

0 commit comments

Comments
 (0)