Skip to content

Commit 454a31d

Browse files
committed
ci: align ci_cd with remote main
1 parent b9c826b commit 454a31d

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

.github/workflows/ci_cd.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,13 +59,19 @@ jobs:
5959

6060
- category: ubuntu
6161
platform: x64
62-
instance: ubuntu-latest
62+
instance: ubuntu-22.04
6363

6464
- category: macos
6565
platform: x64
6666
instance: macos-13
6767

68-
python: ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12"]
68+
python: ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12", "3.13"]
69+
70+
# This fails in pytest with:
71+
# 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]
72+
exclude:
73+
- os: { category: windows, platform: x86 }
74+
python: ["3.13"]
6975

7076
steps:
7177
- name: Set Environment on macOS
@@ -110,6 +116,7 @@ jobs:
110116
Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append -InputObject "PYTHONHOME=$(python -c 'import sys; print(sys.prefix)')"
111117
112118
- name: Embedding tests
119+
if: ${{ matrix.python != '3.13' }}
113120
run: dotnet test --runtime any-${{ matrix.os.platform }} --logger "console;verbosity=detailed" src/embed_tests/
114121
env:
115122
MONO_THREADS_SUSPEND: preemptive # https://github.com/mono/mono/issues/21466
@@ -128,6 +135,7 @@ jobs:
128135
run: pytest --runtime netfx
129136

130137
- name: Python tests run from .NET
138+
if: ${{ matrix.python != '3.13' }}
131139
run: dotnet test --runtime any-${{ matrix.os.platform }} src/python_tests_runner/
132140

133141
- name: Perf tests

0 commit comments

Comments
 (0)