🌐 AI搜索 & 代理 主页
Skip to content

Commit 4ccd78c

Browse files
authored
Merge pull request #2654 from pythonnet/uv-fixes
Fixes for the uv CI
2 parents 3426bfd + 13dff92 commit 4ccd78c

File tree

1 file changed

+16
-18
lines changed

1 file changed

+16
-18
lines changed

.github/workflows/main.yml

Lines changed: 16 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,11 @@ jobs:
1616
fail-fast: false
1717
matrix:
1818
os:
19-
- category: windows
20-
platform: x86
21-
instance: windows-latest
19+
# Disabled for now, will require some work (#2653)
20+
#
21+
# - category: windows
22+
# platform: x86
23+
# instance: windows-latest
2224

2325
- category: windows
2426
platform: x64
@@ -38,14 +40,6 @@ jobs:
3840

3941
python: ["3.10", "3.11", "3.12", "3.13"]
4042

41-
# This fails in pytest with:
42-
# 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]
43-
exclude:
44-
- os:
45-
category: windows
46-
platform: x86
47-
python: "3.13"
48-
4943
steps:
5044
- name: Set Environment on macOS
5145
uses: maxim-lobanov/setup-xamarin@v1
@@ -69,25 +63,29 @@ jobs:
6963
activate-environment: true
7064
enable-cache: true
7165

72-
- name: Embedding tests
73-
run: dotnet test --runtime any-${{ matrix.os.platform }} --logger "console;verbosity=detailed" src/embed_tests/
66+
- name: Synchronize the virtual environment
67+
run: uv sync
68+
69+
- name: Embedding tests (Mono/.NET Framework)
70+
run: dotnet test --runtime any-${{ matrix.os.platform }} --framework net472 --logger "console;verbosity=detailed" src/embed_tests/
71+
if: always()
7472
env:
7573
MONO_THREADS_SUSPEND: preemptive # https://github.com/mono/mono/issues/21466
7674

75+
- name: Embedding tests (.NET Core)
76+
run: dotnet test --runtime any-${{ matrix.os.platform }} --framework net8.0 --logger "console;verbosity=detailed" src/embed_tests/
77+
if: always()
78+
7779
- name: Python Tests (Mono)
7880
if: ${{ matrix.os.category != 'windows' }}
7981
run: pytest --runtime mono
8082

81-
# TODO: Run these tests on Windows x86
8283
- name: Python Tests (.NET Core)
83-
if: ${{ matrix.os.platform == 'x64' }}
8484
run: pytest --runtime coreclr
8585

8686
- name: Python Tests (.NET Framework)
8787
if: ${{ matrix.os.category == 'windows' }}
8888
run: pytest --runtime netfx
8989

9090
- name: Python tests run from .NET
91-
run: uv run dotnet test --runtime any-${{ matrix.os.platform }} src/python_tests_runner/
92-
93-
# TODO: Run mono tests on Windows?
91+
run: dotnet test --runtime any-${{ matrix.os.platform }} src/python_tests_runner/

0 commit comments

Comments
 (0)