Skip to content

Commit 90b62cc

Browse files
committed
Reenable, call find_libpython as module and skip perf tests
1 parent c341c9e commit 90b62cc

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

.github/workflows/main.yml

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -62,17 +62,17 @@ jobs:
6262
- name: Set Python DLL path and PYTHONHOME (non Windows)
6363
if: ${{ matrix.os.category != 'windows' }}
6464
run: |
65-
echo PYTHONNET_PYDLL=$(uv run find_libpython) >> $GITHUB_ENV
65+
echo PYTHONNET_PYDLL=$(uv run python -m find_libpython) >> $GITHUB_ENV
6666
6767
- name: Set Python DLL path and PYTHONHOME (Windows)
6868
if: ${{ matrix.os.category == 'windows' }}
6969
run: |
70-
Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append -InputObject "PYTHONNET_PYDLL=$(uv run find_libpython)"
70+
Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append -InputObject "PYTHONNET_PYDLL=$(uv run python -m find_libpython)"
7171
72-
# - name: Embedding tests
73-
# run: uv run dotnet test --runtime any-${{ matrix.os.platform }} --logger "console;verbosity=detailed" src/embed_tests/
74-
# env:
75-
# MONO_THREADS_SUSPEND: preemptive # https://github.com/mono/mono/issues/21466
72+
- name: Embedding tests
73+
run: uv run dotnet test --runtime any-${{ matrix.os.platform }} --logger "console;verbosity=detailed" src/embed_tests/
74+
env:
75+
MONO_THREADS_SUSPEND: preemptive # https://github.com/mono/mono/issues/21466
7676

7777
- name: Python Tests (Mono)
7878
if: ${{ matrix.os.category != 'windows' }}
@@ -87,13 +87,13 @@ jobs:
8787
if: ${{ matrix.os.category == 'windows' }}
8888
run: uv run pytest --runtime netfx
8989

90-
# - name: Python tests run from .NET
91-
# run: uv run dotnet test --runtime any-${{ matrix.os.platform }} src/python_tests_runner/
92-
93-
- name: Perf tests
94-
if: ${{ (matrix.python == '3.8') && (matrix.os.platform == 'x64') }}
95-
run: |
96-
uv pip install --force --no-deps --target src/perf_tests/baseline/ pythonnet==2.5.2
97-
uv run dotnet test --configuration Release --runtime any-${{ matrix.os.platform }} --logger "console;verbosity=detailed" src/perf_tests/
90+
- name: Python tests run from .NET
91+
run: uv run dotnet test --runtime any-${{ matrix.os.platform }} src/python_tests_runner/
9892

93+
# - name: Perf tests
94+
# if: ${{ (matrix.python == '3.8') && (matrix.os.platform == 'x64') }}
95+
# run: |
96+
# uv pip install --force --no-deps --target src/perf_tests/baseline/ pythonnet==2.5.2
97+
# uv run dotnet test --configuration Release --runtime any-${{ matrix.os.platform }} --logger "console;verbosity=detailed" src/perf_tests/
98+
#
9999
# TODO: Run mono tests on Windows?

0 commit comments

Comments
 (0)