Skip to content

chore(ci): switch Python dependency management in CI to uv#144

Merged
tchaton merged 11 commits intoLightning-AI:mainfrom
bhimrazy:migrate-to-uv
Feb 3, 2026
Merged

chore(ci): switch Python dependency management in CI to uv#144
tchaton merged 11 commits intoLightning-AI:mainfrom
bhimrazy:migrate-to-uv

Conversation

@bhimrazy
Copy link
Collaborator

@bhimrazy bhimrazy commented Feb 3, 2026

What does this PR do?

This PR migrates the CI workflows to use uv for Python dependency installation and environment setup.

before (ci-testing): ~4m
after (ci-testing): ~1m

PR review

Anyone in the community is free to review the PR once the tests have passed.
If we didn't discuss your PR in GitHub issues there's a high chance it will not be merged.

Did you have fun?

Make sure you had fun coding 🙃

- Replace pip with uv in ci-testing.yml, ci-cloud.yml
- Use uv build and uv pip in release-pypi.yml
- Migrate docs-build.yml from external workflow to inline with uv
- Add uv cache support for faster CI runs
- Add comments to ci-checks.yml about external workflow dependencies

Benefits:
- 10-100x faster package installation
- Better caching with uv.lock
- Consistent Python environment across CI runs
- Reduced CI run times
@codecov
Copy link

codecov bot commented Feb 3, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 85%. Comparing base (de068b9) to head (70c6a25).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@         Coverage Diff         @@
##           main   #144   +/-   ##
===================================
  Coverage    85%    85%           
===================================
  Files        12     12           
  Lines       513    513           
===================================
  Hits        435    435           
  Misses       78     78           
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@bhimrazy bhimrazy changed the title ci: migrate to uv for faster Python package management ci: migrate to uv Feb 3, 2026
@bhimrazy bhimrazy self-assigned this Feb 3, 2026
@bhimrazy bhimrazy changed the title ci: migrate to uv chore(ci): switch Python dependency management in CI to uv Feb 3, 2026
@bhimrazy bhimrazy marked this pull request as ready for review February 3, 2026 07:48
@tchaton tchaton merged commit a79cec2 into Lightning-AI:main Feb 3, 2026
28 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants