From 4d822030f9d580625d1f079fa729fcd81171b758 Mon Sep 17 00:00:00 2001 From: Julian Pawlowski Date: Sun, 29 Mar 2026 18:55:23 +0000 Subject: [PATCH] fix(ci): bump Python to 3.14 and pin uv venv to setup-python interpreter MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit homeassistant==2026.3.4 requires Python>=3.14.2. The lint workflow was specifying Python 3.13, and uv venv was ignoring actions/setup-python and picking up the system Python (3.14.0) instead. Changes: - lint.yml: python-version 3.13 → 3.14 - bootstrap: uv venv now uses $(which python) to respect actions/setup-python and local pyenv/asdf setups Impact: lint workflow no longer fails with Python version unsatisfiable dependency error when installing homeassistant. --- .github/workflows/lint.yml | 2 +- scripts/setup/bootstrap | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index c76fdd8..4e637b8 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -31,7 +31,7 @@ jobs: - name: Set up Python uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0 with: - python-version: "3.13" + python-version: "3.14" - name: Install uv uses: astral-sh/setup-uv@37802adc94f370d6bfd71619e3f0bf239e1f3b78 # v7.6.0 diff --git a/scripts/setup/bootstrap b/scripts/setup/bootstrap index ad8d177..b5455f3 100755 --- a/scripts/setup/bootstrap +++ b/scripts/setup/bootstrap @@ -39,7 +39,8 @@ fi # if no venv, create one if [[ ! -d $HOME/.venv ]]; then log_header "Creating virtual environment" - uv venv "$HOME/.venv" + # Use the Python interpreter from PATH (respects actions/setup-python or local pyenv) + uv venv --python "$(which python)" "$HOME/.venv" ln -s "$HOME/.venv/" .venv fi # shellcheck source=/dev/null