Skip to content

Commit 8af2a71

Browse files
committed
use tests/benchmarks as PGO source
1 parent 9efbf7b commit 8af2a71

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -454,7 +454,7 @@ jobs:
454454
pip install -U pip
455455
pip install -r tests/requirements.txt
456456
pip install pydantic-core --no-index --no-deps --find-links pgo-wheel --force-reinstall
457-
pytest
457+
pytest tests/benchmarks
458458
rustup run stable bash -c '$RUSTUP_HOME/toolchains/$RUSTUP_TOOLCHAIN/lib/rustlib/x86_64-unknown-linux-gnu/bin/llvm-profdata merge -o ${{ github.workspace }}/merged.profdata ${{ github.workspace }}/profdata'
459459
460460
- name: build pgo-optimized wheel

.github/workflows/codspeed.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ jobs:
5959
RUSTFLAGS: "-Cprofile-generate=${{ github.workspace }}/profdata"
6060

6161
- name: Gather pgo data
62-
run: pytest
62+
run: pytest tests/benchmarks
6363

6464
- name: Prepare merged pgo data
6565
run: rustup run stable bash -c '$RUSTUP_HOME/toolchains/$RUSTUP_TOOLCHAIN/lib/rustlib/x86_64-unknown-linux-gnu/bin/llvm-profdata merge -o ${{ github.workspace }}/merged.profdata ${{ github.workspace }}/profdata'

0 commit comments

Comments
 (0)