Skip to content

Commit c675b47

Browse files
committed
Add artifacting of benchmark data
1 parent 73460b8 commit c675b47

File tree

3 files changed

+10
-1
lines changed

3 files changed

+10
-1
lines changed

.github/workflows/ci.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,3 +97,9 @@ jobs:
9797
- run: make postgres
9898
- run: pip install pytest pytest-benchmark pytest-asyncio
9999
- run: make benchmark
100+
101+
- name: Save benchmark results as artifact
102+
uses: actions/upload-artifact@v4
103+
with:
104+
name: benchmark-results
105+
path: benchmark_data.json

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,3 +48,6 @@ tools/generated/*
4848

4949
# Gets created when testing sonar-scanner locally
5050
.scannerwork
51+
52+
# benchmark tests output
53+
benchmark_data.json

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,4 @@ linters:
2222
mypy --ignore-missing-imports dispatcher
2323

2424
benchmark:
25-
py.test tests/benchmark/ --benchmark-columns=mean,min,max,stddev,rounds
25+
py.test tests/benchmark/ --benchmark-columns=mean,min,max,stddev,rounds --benchmark-json=benchmark_data.json

0 commit comments

Comments
 (0)