Repository navigation
Conversation
…flows Add a `use-tox-uv` boolean input (default false) to `_reusable-test-code.yml` and `_reusable-test-docs.yml`. When true, the install steps add `tox-uv` alongside tox. Document the input and the caveat that environments created by tox-uv have no pip, so a tox config that overrides `install_command` with a pip command fails with "No module named pip". Remove this repo's own `install_command` override, which isn't needed and broke under tox-uv, and turn `use-tox-uv` on in `test-code.yml` so CI exercises the new path. Closes tektronix#354
nfelt14
requested changes
Nov 19, 2026
| `<repository-name>-create-and-scan-sbom.spdx.json`) and | ||
| `<repository-name>-production-sbom.spdx.json` (production SBOM, previously | ||
| `<repository-name>-create-and-scan-sbom-2.spdx.json`). | ||
| - Removed this repository's tox `install_command` override, which isn't needed and doesn't work in environments created by `tox-uv`. |
Collaborator
There was a problem hiding this comment.
This really isn't necessary, anyone reading the changelog doesn't really need to know about this level of testing change for the package since it doesn't affect users.
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Proposed changes
Adds an optional
use-tox-uvinput (boolean, defaultfalse) to_reusable-test-code.ymland_reusable-test-docs.yml. When it'strue, each tox install step also installstox-uv, so tox creates environments and installs packages with uv.Following the discussion on #354, the caveat is documented rather than worked around: environments created by tox-uv have no pip, so a tox config that overrides
install_commandwith a pip command fails withNo module named pip. This repo's own override is removed, as suggested there.Addresses #354
.github/workflows/_reusable-test-code.yml,_reusable-test-docs.yml: newuse-tox-uvinput; the install steps appendtox-uvwhen it's true (python -m pip install tox${{ inputs.use-tox-uv && ' tox-uv' || '' }}).workflows/test-code.md,workflows/test-docs.md: the input in the Inputs table and Example, plus a note on theinstall_commandcaveat (remove the override, or setuv_seed = true).pyproject.toml: removed theinstall_commandoverride..github/workflows/test-code.yml:use-tox-uv: true, so this PR's CI runs the tox-uv path.test-docs.ymlkeeps the default, so the existing path still runs.CHANGELOG.md: Unreleased Added and Changed entries.doc_config/known_words.txt: addeduv. The strict-mode docs spellcheck failed on it in the new docs text.The README isn't changed: it lists each workflow with a link to its page under
workflows/, and inputs are documented on those pages, so the new input is documented inworkflows/test-code.mdandworkflows/test-docs.md.Testing
Local, macOS, Python 3.13.18, tox 4.67.13, tox-uv 1.37.7:
The same
No module named pipfailure on main + tox-uv, on GitHub's ubuntu, macos and windows runners: https://github.com/etollaw/python-package-ci-cd/actions/runs/42998863934 (a reproduction branch on my fork).Not run locally: the test-general job on windows and macos runners, and the workflow expression itself. Both run in this PR's CI.
AI disclosure: I used Claude Code to help reproduce the issue, make these edits, run the checks above, and draft this description. I reviewed the diff and the output before posting.
Types of changes
Checklist
Addresses #<issue_number>