-
Notifications
You must be signed in to change notification settings - Fork 33
fix(ci): fix build with uv #225
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
Conversation
|
Important Review skippedAuto incremental reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the WalkthroughThe GitHub Actions workflow in .github/workflows/main.yaml was migrated from a pip/setuptools-based process to uv. Steps now use astral-sh/setup-uv, uv sync, uv run pytest, and uv build. Linting via ruff is gated to a specific matrix entry. Codecov upload remains. The publish job mirrors uv setup and build. Changes
Sequence Diagram(s)sequenceDiagram
autonumber
actor Dev as GitHub Actions Runner
participant UVSetup as setup-uv Action
participant UV as uv Tooling
participant Pytest as pytest
participant Ruff as ruff
participant Codecov as Codecov Uploader
Dev->>UVSetup: Set up uv and Python (matrix)
Dev->>UV: uv sync
Dev->>UV: uv pip install urllib3==${{ matrix.urllib3-version }}
alt Lint gated (py==3.10 && urllib3==1.26.19)
Dev->>UV: uv run ruff check
UV->>Ruff: Execute lint
end
Dev->>UV: uv run pytest --cov-fail-under 60 --cov openfga_sdk
UV->>Pytest: Execute tests
opt On main/coverage conditions
Dev->>Codecov: Upload coverage
end
sequenceDiagram
autonumber
actor Dev as GitHub Actions Runner (Publish)
participant UVSetup as setup-uv Action
participant UV as uv Tooling
Dev->>UVSetup: Set up uv and Python (3.10)
Dev->>UV: uv sync
Dev->>UV: uv build
note right of UV: Build artifacts (sdist/wheel)
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment Pre-merge checks✅ Passed checks (3 passed)
|
263610a to
77361ba
Compare
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #225 +/- ##
=======================================
Coverage 70.73% 70.73%
=======================================
Files 134 134
Lines 10884 10884
=======================================
Hits 7699 7699
Misses 3185 3185 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
77361ba to
49d9d6f
Compare
Description
Workflow changes from @abhiaagarwal's PR here: #193
What problem is being solved?
How is it being solved?
What changes are made to solve it?
References
Review Checklist
mainSummary by CodeRabbit
Chores
Tests