File tree Expand file tree Collapse file tree 1 file changed +11
-7
lines changed
Expand file tree Collapse file tree 1 file changed +11
-7
lines changed Original file line number Diff line number Diff line change @@ -84,15 +84,18 @@ jobs:
8484 platform : windows
8585
8686 runs-on : ${{ matrix.os }}
87+ env :
88+ UV_PYTHON : ${{ matrix.interpreter }}
8789 steps :
8890 - uses : actions/checkout@v4
89- - uses : actions /setup-python@v5
91+ - uses : astral-sh /setup-uv@v4
9092 with :
91- python-version : ${{ matrix.interpreter }}
92- allow-prereleases : true
93+ enable-cache : false
9394 - uses : dtolnay/rust-toolchain@stable
9495 with :
9596 components : llvm-tools
97+ - shell : bash
98+ run : uv python install ${{ env.UV_PYTHON }}
9699 - name : prepare profiling directory
97100 shell : bash
98101 run : mkdir -p ${{ github.workspace }}/profdata
@@ -112,11 +115,12 @@ jobs:
112115 - name : Generate PGO data
113116 shell : bash
114117 run : |
115- pip install -r .github/workflows/_pgo_deps.txt
116- pip install granian --no-index --no-deps --find-links pgo_wheel --force-reinstall
117- PGO_RUN=y pytest tests
118+ uv venv .venv
119+ uv pip install -r .github/workflows/_pgo_deps.txt
120+ uv pip install granian --no-index --no-deps --find-links pgo_wheel --force-reinstall
121+ PGO_RUN=y LLVM_PROFILE_FILE=${{ github.workspace }}/profdata/%m_%p.profraw uv run --no-sync pytest tests
118122 - name : merge PGO data
119- run : ${{ env.LLVM_PROFDATA }} merge -o ${{ github.workspace }}/merged.profdata ${{ github.workspace }}/profdata
123+ run : ${{ env.LLVM_PROFDATA }} merge --failure-mode=all - o ${{ github.workspace }}/merged.profdata ${{ github.workspace }}/profdata
120124 - name : Build PGO wheel
121125 uses : PyO3/maturin-action@v1
122126 with :
You can’t perform that action at this time.
0 commit comments