ci: switch to uv based project installation#2445
Conversation
|
Install step is already a lot faster. |
|
Edit: I checked in my fork. setup-uv caches the uv installation per default settings, it runs prune cache per default settings as well. So the cache does not include downloaded pypi packages (which would be huge for this project). Ref: https://github.com/MaartenGr/BERTopic/actions/runs/18743018909/job/53463656594 So the caching can stay enabled as "auto", I guess. This switch to setup-uv gets you ~2 minutes faster CI times. I think it's a win. |
|
I also added a This might be useful for debugging which packages / dependencies are installed in CI to pinpoint issues due to dependencies. What do you think? Truncated output: |
|
Good idea adding the tree here! That is going to help so much with debugging all of this. Nice features all around, thank you for your work on this. |
What does this PR do?
This is a new version of #2082. The PR adds the
setup-uvGHA to install uv and setup the python version from the matrix.To still use the
make check, I needed to addactivate-environment: true, otherwise there is no pytest in PATH. Another solution would to calluv run pytestinstead ofmake check.Before submitting