Skip to content

Commit

Permalink
Use separated requirements in build workflow PGO step
Browse files Browse the repository at this point in the history
  • Loading branch information
gi0baro committed Dec 12, 2024
1 parent a39138f commit c00b83f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/_pgo_deps.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
httpx
pytest
pytest-asyncio
sniffio
websockets
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c00b83f

Please sign in to comment.