Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 6c956e8

Browse files
committed
venv should be active, use installed exec
1 parent 9233873 commit 6c956e8

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

.github/workflows/main.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -67,37 +67,37 @@ jobs:
6767
- name: Set Python DLL path and PYTHONHOME (non Windows)
6868
if: ${{ matrix.os.category != 'windows' }}
6969
run: |
70-
echo PYTHONNET_PYDLL=$(uv run python -m find_libpython) >> $GITHUB_ENV
70+
echo PYTHONNET_PYDLL=$(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=$(uv run python -m find_libpython)"
75+
Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append -InputObject "PYTHONNET_PYDLL=$(find_libpython)"
7676
7777
- name: Embedding tests
78-
run: uv run dotnet test --runtime any-${{ matrix.os.platform }} --logger "console;verbosity=detailed" src/embed_tests/
78+
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: uv run python -m pytest --runtime mono
84+
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: uv run python -m pytest --runtime coreclr
89+
run: pytest --runtime coreclr
9090

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

9595
- name: Python tests run from .NET
96-
run: uv run dotnet test --runtime any-${{ matrix.os.platform }} src/python_tests_runner/
96+
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') }}
100100
run: |
101101
uv pip install --force --no-deps --target src/perf_tests/baseline/ pythonnet==2.5.2
102-
uv run dotnet test --configuration Release --runtime any-${{ matrix.os.platform }} --logger "console;verbosity=detailed" src/perf_tests/
102+
dotnet test --configuration Release --runtime any-${{ matrix.os.platform }} --logger "console;verbosity=detailed" src/perf_tests/
103103
# TODO: Run mono tests on Windows?

0 commit comments

Comments
 (0)