Skip to content

Commit 804c7fb

Browse files
committed
Add artifacting of benchmark data
1 parent 1edea4e commit 804c7fb

File tree

3 files changed

+10
-1
lines changed

3 files changed

+10
-1
lines changed

.github/workflows/ci.yml

+6
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

+3
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

+1-1
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)