Repository navigation
ci: run uv from the flake dev shell via nix-setup - #422
Conversation
CI runs uv from the dev shell instead of setup-uv, so the Home Manager profile and CI use the same uv from flake.lock. uv still fetches the Python that .python-version and pyproject.toml request. Refs furedea/reusable-workflows#23 Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Replace setup-uv and install-nix-action with the shared nix-setup action, and run the Python jobs through nix develop, so CI uses the uv pinned by flake.lock. Refs furedea/reusable-workflows#23 Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
|
@codex review |
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Review summary: no findings. Checked:
One non-blocking note: the uv/Python cache that |
|
Codex Review: Didn't find any major issues. 🎉 Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
uv 0.13.4 only knows Python 3.15.0, so uv in the dev shell cannot satisfy requires-python >= 3.15.1 on CI. uv 0.13.5 adds the 3.15.1 download. Refs furedea/reusable-workflows#23 Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
|
@codex review |
|
Review summary: no blocking issues found.
No P0/P1 findings. |
|
Codex Review: Didn't find any major issues. Bravo. Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
概要
CI の Python ジョブから
astral-sh/setup-uvをやめ,flake の devShell のuvで動かす.Nix の準備は reusable-workflows のnix-setup(v1.3.0)に統一する.これでci.ymlに言語のツールを入れる action がなくなる.Refs furedea/reusable-workflows#23
変更
feat(nix): add uv to the dev shellunstable.uvを足す.devShell はx86_64-linuxでも出る(既存)ci: run uv from the flake dev shell via nix-setupsetup-uvとinstall-nix-actionをnix-setupに置き換え,Python ジョブの shell をnix develop --command bash -eo pipefail {0}にするchore(nix): update nixpkgs-unstable for uv 0.13.5nix flake update nixpkgs-unstable(下記)all-greenのneedsは変えていない(必須チェックは同じ).uvが.python-versionとpyproject.tomlの指定(3.15.1)を取得する.python_315.nixを入れると Linux でソースからビルドになり遅いため.nixpkgs-unstableの更新が必要だった理由:更新前のuv0.13.4 は Python 3.15.0 までしか知らず,requires-python >= 3.15.1を満たせず CI が落ちた(setup-uvは最新の uv を入れていたので落ちなかった).uv 0.13.5 が 3.15.1 を追加している.この更新はunstable.*の他のパッケージ(lefthook2.2.2,dprint0.64.3 など)も上げる.検証
nix flake check --all-systems --no-build --option allow-import-from-derivation falseが通った(lock 更新の前後とも).uv run ruff check,uv run ty check,uv run pytest -m 'not integration'(163 件)が通った(lock 更新後).all-green,claude-review,codex-reviewが緑.CI の時間
比較は main の run
42612982268(変更前)と,この PR の run42622651969(変更後).レビュー系(codex-review2 分 36 秒など)は PR にだけ走るので除く.bats-testsnix-checkformat-checkshell-lintlua-linttest-pythonlint-pythonaudit-pythonPython のジョブは uv の Python とパッケージのキャッシュがなくなり,Nix の準備も加わるため 30 秒ほど延びた.並列で走るので,全体の待ち時間(最も長いジョブ)は延びていない.変更前後の差は Runner のばらつきも含む(1 回ずつの測定).
計画との差
なし.
🤖 Generated with Claude Code