11default :
22 @ just --choose
33
4+ default_platform := if arch () == " x86_64" { " x64" } else if arch () == " aarch64" { " arm64" } else { arch () }
5+
46setup :
57 dotnet restore
68 uv sync
1113
1214build-wheels :
1315 uv build
14- uv build --wheel -C=" --global-option=--net46-support"
16+ uv build --wheel -C=" --global-option=--net46-support"
17+
18+ # Run default tests (.NET Core Python and embedding tests)
19+ test : test-python-coreclr test-embed-core
20+
21+ # Run Python tests (default or pass options like --runtime coreclr)
22+ test-python * args :
23+ uv run pytest {{ args }}
24+
25+ # Run Python tests with .NET Core
26+ test-python-coreclr * args :
27+ uv run pytest --runtime coreclr {{ args }}
28+
29+ # Run Python tests with Mono
30+ test-python-mono * args :
31+ uv run pytest --runtime mono {{ args }}
32+
33+ # Run Python tests with .NET Framework
34+ test-python-netfx * args :
35+ uv run pytest --runtime netfx {{ args }}
36+
37+ # Run Python tests executed via .NET test runner
38+ test-python-from-dotnet platform = default_platform * args :
39+ dotnet test --runtime any-{{ platform }} src/ python_tests_runner/ {{ args }}
40+
41+ # Run embedding tests
42+ test-embed runtime = (" any-" + default_platform) * args :
43+ dotnet test --runtime {{ runtime }} src/ embed_tests/ {{ args }}
44+
45+ # Run embedding tests with .NET Core
46+ test-embed-core platform = default_platform * args :
47+ dotnet test --runtime any-{{ platform }} --framework net10.0 --logger " console;verbosity=detailed" src/ embed_tests/ {{ args }}
48+
49+ # Run embedding tests with Mono / .NET Framework
50+ [env (" MONO_THREADS_SUSPEND" , " preemptive" )]
51+ test-embed-mono platform = default_platform * args :
52+ dotnet test --runtime any-{{ platform }} --framework net472 --logger " console;verbosity=detailed" src/ embed_tests/ {{ args }}
0 commit comments