Repository navigation
Commit c643cf7
authored
perf(python_unit_tests): use the runner's local disk for temp files on Windows (#323)
On Windows runners, `python_unit_tests` now sets `TMP` and `TEMP` to
`RUNNER_TEMP` for the rest of the job. The default temp dir is on a
network-backed disk that is 4-6x slower at small-file writes than the
runner's local SSD. pytest's `tmp_path` and uv's scratch files both
honor `TEMP`, so they land on the fast disk. Measured in
apify/actor-templates#907. Nothing changes on Linux or macOS.
This workflow runs the Windows legs of crawlee-python, apify-sdk-python,
apify-client-python and apify-shared-python. apify/actions#41 is the
same change for the pnpm side.1 parent 11e38c9 commit c643cf7
1 file changed
Lines changed: 8 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
69 | 69 | | |
70 | 70 | | |
71 | 71 | | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
72 | 80 | | |
73 | 81 | | |
74 | 82 | | |
| |||
0 commit comments