File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -43,24 +43,14 @@ jobs:
4343 with :
4444 version : ${{ matrix.uv_version || 'latest' }}
4545 enable-cache : true
46-
47- - name : Set up Python
48- uses : actions/setup-python@e797f83bcb11b83ae66e0230d6156d7c80228e7c # v6.0.0
49- with :
5046 python-version : ${{ matrix.python_version }}
5147
52- - name : Bump dependencies
53- if : ${{ matrix.dependencies == 'max' }}
54- run : |
55- uv sync --upgrade
56-
5748 - name : Setup dependencies
5849 run : |
59- uv python pin $CI_PYTHON_VERSION
60- uv sync
50+ uv sync $CI_UV_UPGRADE_ARG
6151 env :
52+ CI_UV_UPGRADE_ARG : ${{ matrix.dependencies == 'max' && '--upgrade' || '' }}
6253 UV_RESOLUTION : ${{ matrix.dependencies == 'min' && 'lowest-direct' || 'highest' }}
63- CI_PYTHON_VERSION : ${{ matrix.python_version }}
6454
6555 - name : Run prek
6656 if : ${{ matrix.pre_commit == null || matrix.pre_commit == 'true' }}
Original file line number Diff line number Diff line change 1+ import os
12import shutil
23from collections .abc import Generator
34from enum import Enum
910from usethis ._integrations .backend .uv .call import call_subprocess , call_uv_subprocess
1011from usethis ._test import change_cwd , is_offline
1112
13+ if "UV_PYTHON" in os .environ :
14+ # To allow test subprocesses to use different versions of Python than the one
15+ # running the tests.
16+ del os .environ ["UV_PYTHON" ]
17+
1218
1319@pytest .fixture (scope = "session" )
1420def _uv_init_dir (tmp_path_factory : pytest .TempPathFactory ) -> Path :
You can’t perform that action at this time.
0 commit comments