Skip to content

Commit fdb047c

Browse files
committed
chore: simplify Python version handling in configuration
- Updated mise.toml to directly specify the Python version instead of using the CI environment variable. - Added MISE_PYTHON_VERSION to the GitHub Actions workflow for performance optimization, allowing uv to reuse the installed Python.
1 parent 4f02324 commit fdb047c

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

.github/workflows/cd.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@ jobs:
2828
pull-requests: write
2929
env:
3030
UV_PYTHON: ${{ matrix.python-version }}
31+
# technically not needed, since uv will read UV_PYTHON from the environment,
32+
# but this way uv can reuse mise's installed Python (performance)
33+
MISE_PYTHON_VERSION: ${{ matrix.python-version }}
3134

3235
strategy:
3336
fail-fast: false

mise.toml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
[tools]
2-
# reuse UV_PYTHON from the CI environment to avoid installing two versions of Python (performance)
3-
python = "{{ get_env(name='UV_PYTHON', default='3.14.2') }}"
2+
python = "3.14.2"
43
uv = "0.9.21"
54

65
# https://mise.jdx.dev/mise-cookbook/python.html#mise-uv

0 commit comments

Comments
 (0)