65
65
Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append -InputObject "PYTHONNET_PYDLL=$(python -m find_libpython)"
66
66
67
67
-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/
69
69
env :
70
70
MONO_THREADS_SUSPEND :preemptive # https://github.com/mono/mono/issues/21466
71
71
@@ -83,12 +83,12 @@ jobs:
83
83
run :pytest --runtime netfx
84
84
85
85
-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/
87
87
88
88
-name :Perf tests
89
89
if :${{ (matrix.python == '3.8') && (matrix.platform == 'x64') }}
90
90
run :|
91
91
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/
93
93
94
94
# TODO: Run mono tests on Windows?