Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

✨ Adopt uv in CI #444

Merged
merged 3 commits into from
Apr 12, 2024
Merged

✨ Adopt uv in CI #444

merged 3 commits into from
Apr 12, 2024

Conversation

burgholzer
Copy link
Member

Description

This PR updates the CI configuration to use uv by Astral (the creators of ruff), which is an extremely fast Python package installer and resolver, written in Rust. It is sesigned as a drop-in replacement for common pip and pip-tools workflows.
See https://github.com/astral-sh/uv

Similar to ruff, it is extremely fast and in very active development. This should speed up any of the Python-based CI runs without much confirguration overhead.

This PR refactors the minimums check to make use of uv's --resolution=lowest-direct" feature. This allows us to completely get rid of the constraints.txtfile. Furthermore, it makes use of the new versions ofmqt-core`'s reusable workflows.

Checklist:

  • The pull request only contains commits that are related to it.
  • I have added appropriate tests and documentation.
  • I have made sure that all CI jobs on GitHub pass.
  • The pull request introduces no new warnings and follows the project's style guidelines.

@burgholzer burgholzer self-assigned this Apr 12, 2024
@burgholzer burgholzer added python Anything related to Python code continuous integration Anything related to the CI setup enhancement Anything related to improvements of the existing library labels Apr 12, 2024
@burgholzer burgholzer enabled auto-merge (squash) April 12, 2024 20:39
Copy link

codecov bot commented Apr 12, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 90.0%. Comparing base (e9eee05) to head (013414d).

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##            main    #444     +/-   ##
=======================================
+ Coverage   89.8%   90.0%   +0.1%     
=======================================
  Files         61      61             
  Lines       6357    6354      -3     
  Branches    1008    1008             
=======================================
+ Hits        5713    5722      +9     
+ Misses       644     632     -12     
Flag Coverage Δ
cpp 89.5% <ø> (+0.1%) ⬆️
python 95.9% <ø> (+1.0%) ⬆️

see 4 files with indirect coverage changes

@burgholzer burgholzer merged commit ce706d2 into main Apr 12, 2024
37 checks passed
@burgholzer burgholzer deleted the setup-uv branch April 12, 2024 21:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
continuous integration Anything related to the CI setup enhancement Anything related to improvements of the existing library python Anything related to Python code
Projects
Status: Done
Status: Done
Development

Successfully merging this pull request may close these issues.

1 participant