@@ -58,42 +58,43 @@ jobs:
58
58
dotnet-version : ' 6.0.x'
59
59
60
60
- name : Install the latest version of uv
61
- uses : astral-sh/setup-uv@v5
61
+ uses : astral-sh/setup-uv@v6
62
62
with :
63
63
architecture : ${{ matrix.os.platform }}
64
64
python-version : ${{ matrix.python }}
65
+ activate-environment : true
65
66
enable-cache : true
66
67
67
68
- name : Set Python DLL path and PYTHONHOME (non Windows)
68
69
if : ${{ matrix.os.category != 'windows' }}
69
70
run : |
70
- echo PYTHONNET_PYDLL=$(uv run find_libpython) >> $GITHUB_ENV
71
+ echo PYTHONNET_PYDLL=$(find_libpython) >> $GITHUB_ENV
71
72
72
73
- name : Set Python DLL path and PYTHONHOME (Windows)
73
74
if : ${{ matrix.os.category == 'windows' }}
74
75
run : |
75
- Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append -InputObject "PYTHONNET_PYDLL=$(uv run find_libpython)"
76
+ Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append -InputObject "PYTHONNET_PYDLL=$(find_libpython)"
76
77
77
78
- name : Embedding tests
78
- run : uv run dotnet test --runtime any-${{ matrix.os.platform }} --logger "console;verbosity=detailed" src/embed_tests/
79
+ run : dotnet test --runtime any-${{ matrix.os.platform }} --logger "console;verbosity=detailed" src/embed_tests/
79
80
env :
80
81
MONO_THREADS_SUSPEND : preemptive # https://github.com/mono/mono/issues/21466
81
82
82
83
- name : Python Tests (Mono)
83
84
if : ${{ matrix.os.category != 'windows' }}
84
- run : uv run pytest --runtime mono
85
+ run : pytest --runtime mono
85
86
86
87
# TODO: Run these tests on Windows x86
87
88
- name : Python Tests (.NET Core)
88
89
if : ${{ matrix.os.platform == 'x64' }}
89
- run : uv run pytest --runtime coreclr
90
+ run : pytest --runtime coreclr
90
91
91
92
- name : Python Tests (.NET Framework)
92
93
if : ${{ matrix.os.category == 'windows' }}
93
- run : uv run pytest --runtime netfx
94
+ run : pytest --runtime netfx
94
95
95
96
- name : Python tests run from .NET
96
- run : uv run dotnet test --runtime any-${{ matrix.os.platform }} src/python_tests_runner/
97
+ run : dotnet test --runtime any-${{ matrix.os.platform }} src/python_tests_runner/
97
98
98
99
- name : Perf tests
99
100
if : ${{ (matrix.python == '3.8') && (matrix.os.platform == 'x64') }}
0 commit comments