🌐 AI搜索 & 代理 主页
Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 16 additions & 18 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,11 @@ jobs:
fail-fast: false
matrix:
os:
- category: windows
platform: x86
instance: windows-latest
# Disabled for now, will require some work (#2653)
#
# - category: windows
# platform: x86
# instance: windows-latest

- category: windows
platform: x64
Expand All @@ -38,14 +40,6 @@ jobs:

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

# This fails in pytest with:
# 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]
exclude:
- os:
category: windows
platform: x86
python: "3.13"

steps:
- name: Set Environment on macOS
uses: maxim-lobanov/setup-xamarin@v1
Expand All @@ -69,25 +63,29 @@ jobs:
activate-environment: true
enable-cache: true

- name: Embedding tests
run: dotnet test --runtime any-${{ matrix.os.platform }} --logger "console;verbosity=detailed" src/embed_tests/
- name: Synchronize the virtual environment
run: uv sync

- name: Embedding tests (Mono/.NET Framework)
run: dotnet test --runtime any-${{ matrix.os.platform }} --framework net472 --logger "console;verbosity=detailed" src/embed_tests/
if: always()
env:
MONO_THREADS_SUSPEND: preemptive # https://github.com/mono/mono/issues/21466

- name: Embedding tests (.NET Core)
run: dotnet test --runtime any-${{ matrix.os.platform }} --framework net8.0 --logger "console;verbosity=detailed" src/embed_tests/
if: always()

- name: Python Tests (Mono)
if: ${{ matrix.os.category != 'windows' }}
run: pytest --runtime mono

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

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

- name: Python tests run from .NET
run: uv run dotnet test --runtime any-${{ matrix.os.platform }} src/python_tests_runner/

# TODO: Run mono tests on Windows?
run: dotnet test --runtime any-${{ matrix.os.platform }} src/python_tests_runner/
Loading