mirror of
https://github.com/jpawlowski/hass.tibber_prices.git
synced 2026-03-29 21:03:40 +00:00
fix(ci): bump Python to 3.14 and pin uv venv to setup-python interpreter
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.
This commit is contained in:
parent
b92becdf8f
commit
4d822030f9
2 changed files with 3 additions and 2 deletions
2
.github/workflows/lint.yml
vendored
2
.github/workflows/lint.yml
vendored
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue