Skip to content

ci: change uv sync to uv pip install#691

Merged
gsprochette merged 1 commit into
mainfrom
ci/change-uv-sync-to-uv-pip-install
Jun 18, 2026
Merged

ci: change uv sync to uv pip install#691
gsprochette merged 1 commit into
mainfrom
ci/change-uv-sync-to-uv-pip-install

Conversation

@gsprochette

Copy link
Copy Markdown
Collaborator

Description

uv sync is messing up the CI when bumping the transformers compatibility to 5+. By resolving the whole environment at the same time, it ends up with 4.57, whereas for most extras 5+ is compatible.
This PR changes uv sync to uv pip install and slightly cleans up the installation process.

Related Issue

Fixes #(issue number)

Type of Change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Refactor (no functional change)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation update

Testing

  • I added or updated tests covering my changes
  • Existing tests pass locally (uv run pytest -m "cpu and not slow")

For full setup and testing instructions, see the Contributing Guide.

Checklist

  • My code follows the style guidelines of this project
  • I have performed a self-review of my code, especially for agent-assisted changes
  • I updated the documentation where necessary

Thanks for contributing to Pruna! We're excited to review your work.

New to contributing? Check out our Contributing Guide for everything you need to get started.

Note:

  • Draft PRs or PRs without a clear and detailed overview may be delayed.
  • Please mark your PR as Ready for Review and ensure the sections above are filled out.
  • Contributions that are entirely AI-generated without meaningful human review are discouraged.

@gsprochette gsprochette requested a review from begumcig June 18, 2026 13:04
@gsprochette

gsprochette commented Jun 18, 2026

Copy link
Copy Markdown
Collaborator Author

Note that the CI still installs transformers==4.57.6 because we still have a pin on transformers, This PR is in preparation of removing the pin, to be able to install transformers>=5 in #685
The torch version has changed to 2.12, which is fine because we're only using cpu in this workflow, otherwise we would need the extra-index from pytorch to get a non-blackwell build...

@begumcig begumcig left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Let's gooooooooooooo

@gsprochette gsprochette merged commit 546b1e3 into main Jun 18, 2026
10 of 11 checks passed
@gsprochette gsprochette deleted the ci/change-uv-sync-to-uv-pip-install branch June 18, 2026 14:20
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