Skip to content

Commit b679615

Browse files
committed
ci(perf.yml): use python venv to run gbench
Signed-off-by: Leonardo Di Giovanna <[email protected]>
1 parent e65bb86 commit b679615

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/perf.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,9 @@ jobs:
5252
5353
- name: Diff from master - gbench
5454
run: |
55-
pip3 install -r google-benchmark/tools/requirements.txt
56-
python3 google-benchmark/tools/compare.py --no-color benchmarks gbench_data.json ${{ steps.perf.outputs.gbench_json }} &> gbench_diff.txt
55+
python3 -m venv .venv
56+
./.venv/bin/python -m pip install -r google-benchmark/tools/requirements.txt
57+
./.venv/bin/python google-benchmark/tools/compare.py --no-color benchmarks gbench_data.json "${{ steps.perf.outputs.gbench_json }}" &> gbench_diff.txt
5758
5859
- name: Archive perf diff
5960
uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0

0 commit comments

Comments
 (0)