File tree Expand file tree Collapse file tree 2 files changed +19
-6
lines changed
Expand file tree Collapse file tree 2 files changed +19
-6
lines changed Original file line number Diff line number Diff line change 1717# - '.github/workflows/tests-performance.yml'
1818
1919jobs :
20- test :
20+ test-performance :
2121 runs-on : gcp-perf-test-dedicated
2222 container :
2323 image : ubuntu:24.04
@@ -46,14 +46,24 @@ jobs:
4646 run : |
4747 pytest --junitxml="test-results/test-performance.xml" tests/performance
4848
49- - name : Report
49+ - name : Report measurements
5050 uses : mikepenz/action-junit-report@v5
5151 if : always()
5252 with :
53- check_name : ' Performance tests report '
53+ check_name : ' Performance measurements '
5454 report_paths : " ./test-results/test-performance.xml"
5555 detailed_summary : true
56- verbose_summary : true
56+ include_passed : true
57+ include_time_in_summary : true
58+ resolve_ignore_classname : true
59+
60+ - name : Performance validation
61+ uses : mikepenz/action-junit-report@v5
62+ if : always()
63+ with :
64+ check_name : ' Performance validation'
65+ report_paths : " ./test-results/test-performance__validation.xml"
66+ detailed_summary : true
5767 include_passed : true
5868 include_time_in_summary : true
5969 resolve_ignore_classname : true
Original file line number Diff line number Diff line change @@ -22,9 +22,12 @@ def pytest_configure(config):
2222 config .option .benchmark_time_unit = "ms"
2323 config .option .benchmark_sort = "name"
2424 config .option .benchmark_json = BytesIO ()
25- config .option .junit_prefix = "measurement "
25+ config .option .junitxml = "benchmark_measurement.xml "
2626 else :
27- config .option .junit_prefix = "validation"
27+ if config .option .xmlpath :
28+ # For --junitxml = /path/abc.xml, create /path/abc__validation.xml
29+ path = Path (config .option .xmlpath )
30+ config .option .xmlpath = str (path .with_stem (path .stem + "__validation" ))
2831
2932
3033def pytest_benchmark_update_json (config , benchmarks , output_json ):
You can’t perform that action at this time.
0 commit comments