-
-
Notifications
You must be signed in to change notification settings - Fork 8
chore: switch to uv and nox
#143
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
- Use `uv` to manage dependencies - Remove requirements*.txt in favor of uv.lock - Updated dependabot config to use uv.lock file - Use `nox` as the project task runner - Updated CI to use `uv` and `nox` - Add CONTRIBUTING doc about on-boarding info - Update RTD config
24c51f9 to
94139f2
Compare
skip building libgit2
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #143 +/- ##
===========================================
- Coverage 100.00% 98.25% -1.75%
===========================================
Files 24 23 -1
Lines 1869 1886 +17
===========================================
- Hits 1869 1853 -16
- Misses 0 33 +33 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
Well, coverage went down for some reason; I'll investigate that. I had a lot of trouble testing pre-release python on Windows (& some Linux) runners. So, I've disable using pre-releases for now. Test in CI are now done with fewer jobs. Each clang version gets its own job per platform. Each I think this also fixes the problem we had before uploading coverage reports. But I'm not using the reusable workflow for that anymore. |
|
Note Reviews pausedUse the following commands to manage reviews:
WalkthroughThis update restructures the project's dependency management and automation workflows. It removes Changes
Sequence Diagram(s)CI Test Workflow (New)sequenceDiagram
participant GitHub Actions
participant uv
participant Nox
participant pytest
participant Coverage
GitHub Actions->>uv: Install and sync dependencies (test group)
GitHub Actions->>Nox: Run test-all session
Nox->>pytest: Execute tests with coverage
pytest->>Coverage: Generate coverage data
GitHub Actions->>Nox: Run coverage session
Nox->>Coverage: Combine and report coverage
GitHub Actions->>Codecov: Upload coverage data
Documentation Build and Deploy (New)sequenceDiagram
participant GitHub Actions
participant uv
participant Nox
participant Sphinx
participant GitHub Pages
GitHub Actions->>uv: Install and sync dependencies (docs group)
GitHub Actions->>Nox: Run docs session
Nox->>Sphinx: Build HTML documentation
GitHub Actions->>GitHub Pages: Deploy docs if on main branch
Local Development Setup (from CONTRIBUTING.rst)sequenceDiagram
participant Developer
participant uv
participant pre-commit
participant Nox
Developer->>uv: Run uv sync to create venv and install dev dependencies
Developer->>uv: Run pre-commit install
Developer->>uv: Run nox -s test or nox -s docs
uv->>Nox: Execute test/docs session
Suggested labels
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. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
shenxianpeng
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All goood.
4a4024d to
a56e20e
Compare
call `uv` directly when using it use fixed install path
|
@coderabbitai pause |
c09f654 to
872f3e0
Compare
CI run only tests that need to be repeated for each version of clang. 1 job tests everything
|
I don't understand the loss of coverage. I run the tests locally and some lines are covered but not covered in CI. I also see lines missing coverage in both CI and local results, but these lines should be triggered by the current tests that are being run. I'm giving up on the coverage investigation. I really think it is a side effect of using |
This comment was marked as off-topic.
This comment was marked as off-topic.
I will pursue this idea in a separate issue. It may also be causing some other problems. |
uvto manage dependenciesnoxas the project task runneruvandnoxSummary by CodeRabbit
New Features
Improvements
uvtool across development, testing, and documentation workflows.Removals
Documentation