feat(python-ci): support uv projects via package-manager input#244
Merged
Conversation
Add a package-manager input (pip/poetry/uv). With 'uv', astral-sh/setup-uv runs (with its dependency cache) before Python setup, and the actions/setup-python pip cache is disabled — uv projects ship no requirements.txt/pyproject pip lockfile for setup-python to hash, which would otherwise fail the run. Callers then drive install/lint/test with uv (uv sync, uv run ...). Mirrors the package-manager handling already in python-audit.yml; pip/poetry behaviour is unchanged. Signed-off-by: Sebastian Mendel <sebastian.mendel@netresearch.de>
|
Note Gemini is unable to generate a review for this pull request due to the file types involved not being currently supported. |
|
CybotTM
added a commit
to netresearch/jira-to-openproject
that referenced
this pull request
Jul 20, 2026
## What Routes the Python jobs through the org's shared reusables in `netresearch/.github` (with `package-manager: uv`), so the pinned action versions (`checkout`, `setup-uv`, `setup-python`) are maintained centrally instead of inline per-repo: - **ci.yml**: `lint` / `typecheck` / `architecture` / `test` → **`python-ci.yml@main`**. The test env (which `tests/conftest.py` expects; `.env.test` is untracked) is exported to `$GITHUB_ENV` from `install-cmd`. `container-tests` stays inline (buildx + `make`, no Python setup). - **security.yml**: inline `pip-audit` → **`python-audit.yml@main`** (also adds a bandit scan). `gitleaks` + `dependency-review` already used shared reusables. Depends on netresearch/.github#244 (uv support in `python-ci.yml`), already merged. ## Branch protection Reusable-backed jobs report as `<job> / <reusable-job>`, so the required status-check names change. The required checks are updated in lockstep with this PR: - `Lint (ruff)` → `lint / Python 3.14 (ubuntu-latest)` - `Type check (mypy)` → `typecheck / Python 3.14 (ubuntu-latest)` - `Tests (pytest)` → `test / Python 3.14 (ubuntu-latest)` - `Python Dependency Audit` → `audit / pip-audit` (+ `audit / bandit`) - `container-tests` and `gitleaks / Secret Scanning` unchanged. ## Verification Local `actionlint`, `yamllint`, and a `bash -n` on the test `install-cmd` — all clean.
CybotTM
added a commit
that referenced
this pull request
Jul 21, 2026
) python-ci.yml / node-test.yml / node-build.yml use bash syntax (`case` validation, `bash -c` command routing) that ParserErrors or silently no-ops under PowerShell on windows-latest. Adds `defaults.run.shell: bash`. Fixes windows os-matrix cells — coding_agent_cli_toolset's main CI has been red on windows since the uv/package-manager change (#244).
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.



What
Adds a
package-managerinput (pip|poetry|uv, defaultpip) to the reusablepython-ci.yml.When
uv:astral-sh/setup-uvruns (withenable-cache: true) before Python setup;actions/setup-pythonpip cache is disabled — uv projects ship norequirements.txt/pyprojectpip lockfile for setup-python to hash, so leaving the pip cache on hard-fails the run (no file matched **/requirements.txt or **/pyproject.toml);install-cmd: uv sync --frozen --extra dev,lint-cmd: uv run ruff check ., etc.).pip/poetrybehaviour is unchanged (setup-python cache preserved). Implemented with two conditionalsetup-pythonsteps (uv vs non-uv) rather than an inline ternary — atrue && '' || cacheternary is unsound (empty string is falsy, so uv would wrongly get the pip cache; zizmor flagged it).Why
Mirrors the
package-managerhandling already inpython-audit.yml, and unblocks routing uv-based repos (e.g.jira-to-openproject) through the shared reusable so theirsetup-pythonpin is maintained centrally instead of per-repo by Renovate.Verification
Local
actionlint,yamllint(repo config),zizmor— all clean.