mirror of
https://github.com/Magnus167/rustframe.git
synced 2025-10-04 20:09:24 +00:00
Add dry run option to custom benchmark report script and update workflow to use it
This commit is contained in:
13
.github/workflows/run-benchmarks.yml
vendored
13
.github/workflows/run-benchmarks.yml
vendored
@@ -33,6 +33,16 @@ jobs:
|
||||
with:
|
||||
toolchain: stable
|
||||
|
||||
- name: Install Python
|
||||
uses: actions/setup-python@v4
|
||||
- name: Install uv
|
||||
uses: astral-sh/setup-uv@v5
|
||||
- name: Setup venv
|
||||
run: |
|
||||
uv venv
|
||||
uv pip install pandas
|
||||
uv run .github/scripts/custom_benchmark_report.py --dry-run
|
||||
|
||||
- name: Run benchmarks
|
||||
run: cargo bench --features bench
|
||||
|
||||
@@ -44,8 +54,7 @@ jobs:
|
||||
echo "No benchmark reports found, skipping custom report generation."
|
||||
exit 1
|
||||
fi
|
||||
pip3 install pandas
|
||||
python3 .github/scripts/custom_benchmark_report.py
|
||||
uv run .github/scripts/custom_benchmark_report.py
|
||||
|
||||
- name: Upload benchmark reports
|
||||
uses: actions/upload-artifact@v4
|
||||
|
Reference in New Issue
Block a user