-
Notifications
You must be signed in to change notification settings - Fork 64
DEV: revise release action to address python 3.13.4 bug #2355
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
[CHANGED] pinned to 3.13.3. Also now just test the lowest and highest supported python versions.
Reviewer's GuideRefactor the release workflow by pinning Python to 3.13.3 and limiting tests to the lowest and highest supported versions, while migrating environment setup and test execution to the uv tool for improved caching and consistency. Sequence Diagram for Updated CI Build Job StepssequenceDiagram;
participant Runner as GitHub Actions Runner;
participant Checkout as actions/checkout;
participant SetupPython as actions/setup-python;
participant SetupUV as astral-sh/setup-uv;
participant UV as uv CLI;
participant Nox as nox CLI;
Runner ->> Checkout: Execute (fetch code);
Checkout -->> Runner: Code available;
Runner ->> SetupPython: Execute (setup Python from matrix: 3.10, 3.13.3);
SetupPython -->> Runner: Specific Python version ready;
Runner ->> SetupUV: Execute (install uv, enable cache based on pyproject.toml);
SetupUV -->> Runner: uv CLI available;
Runner ->> UV: Create venv (uv venv venv -p python${{ matrix.python-version }});
UV -->> Runner: Virtual environment 'venv' created;
Runner ->> UV: Install nox (uv tool install -p venv nox);
UV -->> Runner: nox installed in 'venv';
Runner ->> Nox: Run tests (nox -db uv --force-python python -s test);
Nox -->> Runner: Test results;
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
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.
Hey @GavinHuttley - I've reviewed your changes and they look great!
Prompt for AI Agents
Please address the comments from this code review:
## Individual Comments
### Comment 1
<location> `.github/workflows/release.yml:37` </location>
<code_context>
+ - name: "Run nox for ${{ matrix.python-version }}"
+ shell: bash
+ run: |
+ nox -db uv --force-python python -s test
- - name: "Run nox for Python ${{ matrix.python-version }}"
</code_context>
<issue_to_address>
The `-db uv` flag likely misgroups options
Use `nox -d uv --force-python python -s test` to avoid misinterpreting `-db uv` as `-d b`. This ensures the correct driver is specified.
</issue_to_address>
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.
- name: "Run nox for ${{ matrix.python-version }}" | ||
shell: bash | ||
run: | | ||
nox -db uv --force-python python -s test |
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.
issue (bug_risk): The -db uv
flag likely misgroups options
Use nox -d uv --force-python python -s test
to avoid misinterpreting -db uv
as -d b
. This ensures the correct driver is specified.
Pull Request Test Coverage Report for Build 15645889132Warning: This coverage report may be inaccurate.This pull request's base commit is no longer the HEAD commit of its target branch. This means it includes changes from outside the original pull request, including, potentially, unrelated coverage changes.
Details
💛 - Coveralls |
[CHANGED] pinned to 3.13.3. Also now just test the lowest
and highest supported python versions.
Summary by Sourcery
Revise the release workflow to address Python 3.13.4 by pinning supported versions and adopting UV-managed environment and test steps.
CI: