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 #368

Merged
merged 3 commits into from
Apr 12, 2024
Merged

✨ Adopt uv in CI #368

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.

Signed-off-by: burgholzer <burgholzer@me.com>
Signed-off-by: burgholzer <burgholzer@me.com>
Signed-off-by: burgholzer <burgholzer@me.com>
@burgholzer burgholzer self-assigned this Apr 12, 2024
@burgholzer burgholzer added enhancement Anything related to improvements of the existing library python Pull requests that update Python code continuous integration Anything related to the CI setup labels Apr 12, 2024
@burgholzer burgholzer changed the title ✨ Adopt uv in CI ✨ Adopt uv in CI Apr 12, 2024
@burgholzer burgholzer enabled auto-merge (squash) April 12, 2024 20:45
Copy link

codecov bot commented Apr 12, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 92.6%. Comparing base (d1bcc8f) to head (3c3ef89).

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##            main    #368     +/-   ##
=======================================
- Coverage   92.8%   92.6%   -0.2%     
=======================================
  Files         37      37             
  Lines       2552    2552             
  Branches     309     309             
=======================================
- Hits        2369    2365      -4     
- Misses       183     187      +4     
Flag Coverage Δ
cpp 94.5% <ø> (-0.3%) ⬇️
python 87.7% <ø> (ø)

see 2 files with indirect coverage changes

@burgholzer burgholzer merged commit 1eeb986 into main Apr 12, 2024
35 checks passed
@burgholzer burgholzer deleted the setup-uv branch April 12, 2024 20:57
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 Pull requests that update Python code
Projects
Status: Done
Status: Done
Development

Successfully merging this pull request may close these issues.

1 participant