Skip to content

Conversation

@aniketmaurya
Copy link
Collaborator

@aniketmaurya aniketmaurya commented Jul 1, 2025

What does this PR do?

Speed up CI with uv.

Installation time reduced from 2m 29s to a total of 28s on Windows.

OS Python Version Before After
Ubuntu 3.11 1m 31s. 7s
Windows 3.11 2m 29s 28s
macOS 3.12 49s 8s
Before submitting
  • Was this discussed/agreed via a Github issue? (no need for typos and docs improvements)
  • Did you read the contributor guideline, Pull Request section?
  • Did you make sure to update the docs?
  • Did you write any new necessary tests?

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 🙃

…sting

- Added environment variable `UV_SYSTEM_PYTHON` to enable UV integration.
- Replaced direct `pip` commands with `uv pip` for installing dependencies and running tests.
- Updated test and coverage commands to use `uv run` for improved execution within the UV environment.
@aniketmaurya aniketmaurya requested a review from Borda as a code owner July 1, 2025 18:45
@codecov
Copy link

codecov bot commented Jul 1, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 85%. Comparing base (25ef3db) to head (9c130bc).
Report is 1 commits behind head on main.

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

…gitignore

- Added `uv.lock` to .gitignore to prevent lock file from being tracked.
- Refactored pyproject.toml to define project metadata, including name, dynamic versioning, and Python requirements.
- Specified dependencies for the project, including FastAPI, Uvicorn, and others for development.
…toml

- Removed setup.py and requirements.txt files.
- Enhanced pyproject.toml with project metadata, including description, authors, and URLs.
- Updated Python version requirement to >=3.8 and added relevant classifiers.
- Defined project scripts for command-line entry points.
@aniketmaurya aniketmaurya marked this pull request as ready for review July 9, 2025 11:39
@aniketmaurya aniketmaurya changed the title uv for CI - faster package installation uv for CI - faster CI Jul 9, 2025
@Borda Borda self-requested a review July 9, 2025 14:52
@aniketmaurya aniketmaurya merged commit 0ededb4 into main Jul 9, 2025
20 checks passed
@aniketmaurya aniketmaurya deleted the faster-ci-with-uv branch July 9, 2025 15:47
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