Skip to content

Commit 650f8a8

Browse files
committed
fix: try to run within bench dir
1 parent 69c15fb commit 650f8a8

2 files changed

Lines changed: 8 additions & 5 deletions

File tree

.github/workflows/codspeed.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,11 @@ jobs:
1515
matrix:
1616
# IMPORTANT: The binary has to match the architecture of the runner!
1717
cmd:
18-
- bench/testdata/take_strings-aarch64
19-
- ls -alh NEWS.old
18+
- testdata/take_strings-aarch64
2019
- echo Hello, World!
21-
- tar --zstd -cf /tmp/news.tar.gz NEWS.old
22-
- python3 bench/fib.py
20+
- ls -alh ../NEWS.old
21+
- tar --zstd -cf /tmp/news.tar.gz ../NEWS.old && rm /tmp/news.tar.gz
22+
- python3 fib.py
2323
valgrind:
2424
- "3.26.0"
2525
- "3.25.1"
@@ -94,5 +94,6 @@ jobs:
9494
env:
9595
CODSPEED_PERF_ENABLED: false
9696
with:
97+
working-directory: bench
9798
mode: walltime
98-
run: ./bench/bench.py --cmd "${{ matrix.cmd }}" --valgrind-path /usr/local/bin/valgrind
99+
run: ./bench.py --cmd "${{ matrix.cmd }}" --valgrind-path /usr/local/bin/valgrind

bench/pytest.ini

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[pytest]
2+
norecursedirs = testdata __pycache__ .pytest_cache *.egg-info

0 commit comments

Comments
 (0)