You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .github/workflows/main.yml
+12-15
Original file line number
Diff line number
Diff line change
@@ -37,7 +37,7 @@ jobs:
37
37
# This fails in pytest with:
38
38
# CSC : error CS4023: /platform:anycpu32bitpreferred can only be used with /t:exe, /t:winexe and /t:appcontainerexe [D:\a\pythonnet\pythonnet\src\runtime\Python.Runtime.csproj]
39
39
exclude:
40
-
- os:
40
+
- os:
41
41
category: windows
42
42
platform: x86
43
43
python: "3.13"
@@ -58,8 +58,10 @@ jobs:
58
58
dotnet-version: '6.0.x'
59
59
60
60
- name: Install the latest version of uv
61
-
uses: astral-sh/setup-uv@v3
61
+
uses: astral-sh/setup-uv@v4
62
62
with:
63
+
architecture: ${{ matrix.os.platform }}
64
+
python-version: ${{ matrix.python }}
63
65
enable-cache: true
64
66
65
67
- name: Install dependencies
@@ -70,42 +72,37 @@ jobs:
70
72
- name: Set Python DLL path and PYTHONHOME (non Windows)
71
73
if: ${{ matrix.os.category != 'windows' }}
72
74
run: |
73
-
echo PYTHONNET_PYDLL=$(uv run find_libpython) >> $GITHUB_ENV
74
-
echo PYTHONHOME=$(uv run python -c 'import sys; print(sys.prefix)') >> $GITHUB_ENV
75
+
echo PYTHONNET_PYDLL=$(uv run python -m find_libpython) >> $GITHUB_ENV
75
76
76
77
- name: Set Python DLL path and PYTHONHOME (Windows)
77
78
if: ${{ matrix.os.category == 'windows' }}
78
79
run: |
79
-
Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append -InputObject "PYTHONNET_PYDLL=$(uv run find_libpython)"
0 commit comments