Use separated requirements in build workflow PGO step

This commit is contained in:
Giovanni Barillari 2024-12-12 15:26:34 +01:00
parent a39138f949
commit c00b83f376
No known key found for this signature in database
2 changed files with 7 additions and 2 deletions

5
.github/workflows/_pgo_deps.txt vendored Normal file
View file

@ -0,0 +1,5 @@
httpx
pytest
pytest-asyncio
sniffio
websockets

View file

@ -112,8 +112,8 @@ jobs:
- name: Generate PGO data
shell: bash
run: |
pip install granian --no-index --no-deps --find-links pgo_wheel
pip install .[test]
pip install -r .github/workflows/_pgo_deps.txt
pip install granian --no-index --no-deps --find-links pgo_wheel --force-reinstall
PGO_RUN=y pytest tests
- name: merge PGO data
run: ${{ env.LLVM_PROFDATA }} merge -o ${{ github.workspace }}/merged.profdata ${{ github.workspace }}/profdata