Skip to content

Commit cda604a

Browse files
committed
only set PYTHONNET_PYDLL for test runs from .NET
1 parent f68e581 commit cda604a

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.github/workflows/main.yml

+4-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ jobs:
4242

4343
env:
4444
PYTHONNET_SHUTDOWN_MODE: ${{ matrix.SHUTDOWN_MODE }}
45-
PYTHONNET_PYDLL: ${{ matrix.DLL_PREFIX }}python${{matrix.DLL_PYVER_MAJOR}}${{matrix.PYVER_MINOR}}${{matrix.DLL_SUFFIX}}${{matrix.DLL_EXT}}
4645

4746
steps:
4847
- name: Set Environment on macOS
@@ -78,10 +77,14 @@ jobs:
7877
- name: Embedding tests
7978
run: dotnet test --runtime any-${{ matrix.platform }} src/embed_tests/
8079
if: ${{ matrix.os != 'macos' }} # Not working right now, doesn't find libpython
80+
env:
81+
PYTHONNET_PYDLL: ${{ matrix.DLL_PREFIX }}python${{matrix.DLL_PYVER_MAJOR}}${{matrix.PYVER_MINOR}}${{matrix.DLL_SUFFIX}}${{matrix.DLL_EXT}}
8182

8283
- name: Python tests run from .NET
8384
run: dotnet test --runtime any-${{ matrix.platform }} src/python_tests_runner/
8485
if: ${{ matrix.os == 'windows' }} # Not working for others right now
86+
env:
87+
PYTHONNET_PYDLL: ${{ matrix.DLL_PREFIX }}python${{matrix.DLL_PYVER_MAJOR}}${{matrix.PYVER_MINOR}}${{matrix.DLL_SUFFIX}}${{matrix.DLL_EXT}}
8588

8689
# TODO: Run perf tests
8790
# TODO: Run mono tests on Windows?

0 commit comments

Comments
 (0)