Skip to content

Commit f470add

Browse files
committed
Use uv run
1 parent 6c956e8 commit f470add

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

.github/workflows/main.yml

+7-7
Original file line numberDiff line numberDiff line change
@@ -67,33 +67,33 @@ jobs:
6767
- name: Set Python DLL path and PYTHONHOME (non Windows)
6868
if: ${{ matrix.os.category != 'windows' }}
6969
run: |
70-
echo PYTHONNET_PYDLL=$(find_libpython) >> $GITHUB_ENV
70+
echo PYTHONNET_PYDLL=$(uv run find_libpython) >> $GITHUB_ENV
7171
7272
- name: Set Python DLL path and PYTHONHOME (Windows)
7373
if: ${{ matrix.os.category == 'windows' }}
7474
run: |
75-
Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append -InputObject "PYTHONNET_PYDLL=$(find_libpython)"
75+
Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append -InputObject "PYTHONNET_PYDLL=$(uv run find_libpython)"
7676
7777
- name: Embedding tests
78-
run: dotnet test --runtime any-${{ matrix.os.platform }} --logger "console;verbosity=detailed" src/embed_tests/
78+
run: uv run dotnet test --runtime any-${{ matrix.os.platform }} --logger "console;verbosity=detailed" src/embed_tests/
7979
env:
8080
MONO_THREADS_SUSPEND: preemptive # https://github.com/mono/mono/issues/21466
8181

8282
- name: Python Tests (Mono)
8383
if: ${{ matrix.os.category != 'windows' }}
84-
run: pytest --runtime mono
84+
run: uv run pytest --runtime mono
8585

8686
# TODO: Run these tests on Windows x86
8787
- name: Python Tests (.NET Core)
8888
if: ${{ matrix.os.platform == 'x64' }}
89-
run: pytest --runtime coreclr
89+
run: uv run pytest --runtime coreclr
9090

9191
- name: Python Tests (.NET Framework)
9292
if: ${{ matrix.os.category == 'windows' }}
93-
run: pytest --runtime netfx
93+
run: uv run pytest --runtime netfx
9494

9595
- name: Python tests run from .NET
96-
run: dotnet test --runtime any-${{ matrix.os.platform }} src/python_tests_runner/
96+
run: uv run dotnet test --runtime any-${{ matrix.os.platform }} src/python_tests_runner/
9797

9898
- name: Perf tests
9999
if: ${{ (matrix.python == '3.8') && (matrix.os.platform == 'x64') }}

0 commit comments

Comments
 (0)