5050 dotnet-version : ' 6.0.x'
5151
5252 - name : Install the latest version of uv
53- uses : astral-sh/setup-uv@v3
53+ uses : astral-sh/setup-uv@v4
5454 with :
55+ architecture : ${{ matrix.os.platform }}
56+ python-version : ${{ matrix.python }}
5557 enable-cache : true
5658
5759 - name : Install dependencies
@@ -62,40 +64,38 @@ jobs:
6264 - name : Set Python DLL path and PYTHONHOME (non Windows)
6365 if : ${{ matrix.os.category != 'windows' }}
6466 run : |
65- echo PYTHONNET_PYDLL=$(uv run find_libpython) >> $GITHUB_ENV
66- echo PYTHONHOME=$(uv run python -c 'import sys; print(sys.prefix)') >> $GITHUB_ENV
67+ echo PYTHONNET_PYDLL=$(uv run python -m find_libpython) >> $GITHUB_ENV
6768
6869 - name : Set Python DLL path and PYTHONHOME (Windows)
6970 if : ${{ matrix.os.category == 'windows' }}
7071 run : |
71- Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append -InputObject "PYTHONNET_PYDLL=$(uv run find_libpython)"
72- Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append -InputObject "PYTHONHOME=$(uv run python -c 'import sys; print(sys.prefix)')"
72+ Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append -InputObject "PYTHONNET_PYDLL=$(uv run python -m find_libpython)"
7373
7474 - name : Embedding tests
75- run : dotnet test --runtime any-${{ matrix.os.platform }} --logger "console;verbosity=detailed" src/embed_tests/
75+ run : uv run dotnet test --runtime any-${{ matrix.os.platform }} --logger "console;verbosity=detailed" src/embed_tests/
7676 env :
7777 MONO_THREADS_SUSPEND : preemptive # https://github.com/mono/mono/issues/21466
7878
7979 - name : Python Tests (Mono)
8080 if : ${{ matrix.os.category != 'windows' }}
81- run : uv run pytest --runtime mono
81+ run : uv run python -m pytest --runtime mono
8282
8383 # TODO: Run these tests on Windows x86
8484 - name : Python Tests (.NET Core)
8585 if : ${{ matrix.os.platform == 'x64' }}
86- run : uv run pytest --runtime coreclr
86+ run : uv run python -m pytest --runtime coreclr
8787
8888 - name : Python Tests (.NET Framework)
8989 if : ${{ matrix.os.category == 'windows' }}
90- run : uv run pytest --runtime netfx
90+ run : uv run python -m pytest --runtime netfx
9191
9292 - name : Python tests run from .NET
93- run : dotnet test --runtime any-${{ matrix.os.platform }} src/python_tests_runner/
94-
95- - name : Perf tests
96- if : ${{ (matrix.python == '3.8') && (matrix.os.platform == 'x64') }}
97- run : |
98- uv pip install --force --no-deps --target src/perf_tests/baseline/ pythonnet==2.5.2
99- dotnet test --configuration Release --runtime any-${{ matrix.os.platform }} --logger "console;verbosity=detailed" src/perf_tests/
100-
93+ run : uv run dotnet test --runtime any-${{ matrix.os.platform }} src/python_tests_runner/
94+
95+ # - name: Perf tests
96+ # if: ${{ (matrix.python == '3.8') && (matrix.os.platform == 'x64') }}
97+ # run: |
98+ # uv pip install --force --no-deps --target src/perf_tests/baseline/ pythonnet==2.5.2
99+ # uv run dotnet test --configuration Release --runtime any-${{ matrix.os.platform }} --logger "console;verbosity=detailed" src/perf_tests/
100+ #
101101 # TODO: Run mono tests on Windows?
0 commit comments