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

Skip to content

Commit f1be5b6

Browse files
committed
Set PYTHONHOME for tests
1 parent 096f50a commit f1be5b6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/main.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ jobs:
6565
Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append -InputObject "PYTHONNET_PYDLL=$(python -m find_libpython)"
6666
6767
- name: Embedding tests
68-
run: dotnet test --runtime any-${{ matrix.platform }} --logger "console;verbosity=detailed" src/embed_tests/
68+
run: dotnet test --no-self-contained --runtime any-${{ matrix.platform }} --logger "console;verbosity=detailed" src/embed_tests/
6969
env:
7070
MONO_THREADS_SUSPEND: preemptive # https://github.com/mono/mono/issues/21466
7171

@@ -83,12 +83,12 @@ jobs:
8383
run: pytest --runtime netfx
8484

8585
- name: Python tests run from .NET
86-
run: dotnet test --runtime any-${{ matrix.platform }} src/python_tests_runner/
86+
run: dotnet test --no-self-contained --runtime any-${{ matrix.platform }} src/python_tests_runner/
8787

8888
- name: Perf tests
8989
if: ${{ (matrix.python == '3.8') && (matrix.platform == 'x64') }}
9090
run: |
9191
pip install --force --no-deps --target src/perf_tests/baseline/ pythonnet==2.5.2
92-
dotnet test --configuration Release --runtime any-${{ matrix.platform }} --logger "console;verbosity=detailed" src/perf_tests/
92+
dotnet test --no-self-contained --configuration Release --runtime any-${{ matrix.platform }} --logger "console;verbosity=detailed" src/perf_tests/
9393
9494
# TODO: Run mono tests on Windows?

0 commit comments

Comments
 (0)