Skip to content

Conversation

@bhimrazy
Copy link
Owner

@bhimrazy bhimrazy commented Dec 3, 2025

test


📚 Documentation preview 📚: https://lit-utilities--1.org.readthedocs.build/en/1/

- Replace actions/setup-python with astral-sh/setup-uv in all workflows
- Update composite actions to use uv commands (uv pip, uv build, etc.)
- Add uv caching with enable-cache: true and uv cache prune --ci
- Add UV_TORCH_BACKEND: cpu for PyTorch installations
- Update cache action to only handle conda caching
Copilot AI review requested due to automatic review settings December 3, 2025 19:46
@github-actions github-actions bot added the ci/cd label Dec 3, 2025
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR migrates the CI/CD workflows from using pip to uv as the Python package manager. The migration aims to improve build and installation performance by leveraging uv's faster dependency resolution and installation capabilities.

Key changes:

  • Replaced actions/setup-python@v6 with astral-sh/setup-uv@v7 across all workflows
  • Updated all pip commands to uv pip equivalents throughout workflows and actions
  • Added uv cache prune --ci steps to minimize cache size after installations
  • Added UV_TORCH_BACKEND: cpu environment variable for workflows that install PyTorch
  • Removed pip-specific caching logic in favor of uv's built-in caching
  • Updated python -m build to uv build in package creation

Reviewed changes

Copilot reviewed 15 out of 15 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
.github/workflows/release-pypi.yml Migrated to uv for package building and publishing workflow
.github/workflows/deploy-docs.yml Switched to uv for documentation deployment, added UV_TORCH_BACKEND env var
.github/workflows/cleanup-caches.yml Added uv setup and migrated pip commands
.github/workflows/ci-testing.yml Migrated CI testing workflow to use uv, added UV_TORCH_BACKEND env var
.github/workflows/ci-scripts.yml Updated both script testing jobs to use uv
.github/workflows/ci-cli.yml Migrated CLI testing workflow to uv
.github/workflows/check-typing.yml Updated type checking workflow to use uv, added UV_TORCH_BACKEND env var
.github/workflows/check-schema.yml Migrated schema validation workflow to uv
.github/workflows/check-precommit.yml Updated pre-commit workflow to use uv
.github/workflows/check-package.yml Migrated package validation workflow to uv
.github/workflows/check-docs.yml Updated documentation checking workflow to use uv, added UV_TORCH_BACKEND env var
.github/actions/pkg-install/action.yml Replaced all pip commands with uv pip equivalents
.github/actions/pkg-create/action.yml Changed from python -m build to uv build
.github/actions/pip-list/action.yml Updated to use uv pip list instead of pip list
.github/actions/cache/action.yml Removed pip caching logic, updated description to reflect conda-only caching

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@github-actions github-actions bot added the tests label Dec 3, 2025
@bhimrazy
Copy link
Owner Author

bhimrazy commented Dec 4, 2025

test pr for #Lightning-AI#453

@bhimrazy bhimrazy changed the title test test ci Dec 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants