Use uv for CI build and deploy on GitHub action and CircleCI#618
Use uv for CI build and deploy on GitHub action and CircleCI#618willingc wants to merge 20 commits intonapari:mainfrom
Conversation
46dd0e2 to
0e95007
Compare
0e95007 to
4484a2a
Compare
|
@Czaki I got this running green when using uv. Going to look at further optimizing things. Saves a few minutes so far on this run. |
|
Do you want to port these changes to CircleCI workflow as well? |
|
Looks like circle may take some time: they just merged uv support: |
|
@psobolewskiPhD I got it to pass on CircleCI by installing uv into the image until the circle image with uv is released. |
|
Looks like it saves about a minute. Worth it I guess? |
|
I would say if it a minute is saved each run that it makes good sense if it runs 10x/day. |
| - run: | ||
| name: Install qt libs + xvfb | ||
| command: sudo apt-get update && sudo apt-get install -y xvfb libegl1 libdbus-1-3 libxkbcommon-x11-0 libxcb-icccm4 libxcb-image0 libxcb-keysyms1 libxcb-randr0 libxcb-render-util0 libxcb-xinerama0 libxcb-xinput0 libxcb-xfixes0 x11-utils | ||
| # [TODO] Remove this step once uv is installed by default in the cimg/python:3.10 image |
There was a problem hiding this comment.
Does uv is available on more modern images (3.11 or 3.12)?
There was a problem hiding this comment.
The PR adding uv was merged into the image 3 days ago (thanks @psobolewskiPhD). Unfortunately, it has been over a month since the images have been updated on docker hub. There are a few other issues that may prevent quick release https://github.com/CircleCI-Public/cimg-python/issues so I think this is a reasonable approach until the release happens in the future.
|
Once this lands I will open a PR on |
|
@willingc Also do you think we could break out the uv/actions bit from the scripts changes (merge conflicts)? |
|
@psobolewskiPhD I will revisit this PR once I get word from you that all of your scripts changes are up and merged. Thanks. |
|
PR #673 drops the build time on CircleCI approx 9% over prior week P95. |
# References and relevant issues Split out from #618 # Description Updates circleci base image and uses uv for venv management
|
Closing as this is no longer necessary. |
Description
This PR improves observability and performance for GitHub action and CircleCI when building and deploying docs.
Pre-Doc build scripts
This PR:
GitHub Action
This PR:
CircleCI
This makes similar improvements using uv that was done in the GitHub action.