Repository navigation
Expand file tree
/
Copy pathJustfile
More file actions
52 lines (39 loc) · 1.68 KB
/
Copy pathJustfile
File metadata and controls
52 lines (39 loc) · 1.68 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
default:
@just --choose
default_platform := if arch() == "x86_64" { "x64" } else if arch() == "aarch64" { "arm64" } else { arch() }
setup:
dotnet restore
uv sync
docs:
doxygen doc/Doxyfile
uv run --group doc sphinx-build doc/source/ ./doc/build/html/
build-wheels:
uv build
uv build --wheel -C="--global-option=--net46-support"
# Run default tests (.NET Core Python and embedding tests)
test: test-python-coreclr test-embed-core
# Run Python tests (default or pass options like --runtime coreclr)
test-python *args:
uv run pytest {{ args }}
# Run Python tests with .NET Core
test-python-coreclr *args:
uv run pytest --runtime coreclr {{ args }}
# Run Python tests with Mono
test-python-mono *args:
uv run pytest --runtime mono {{ args }}
# Run Python tests with .NET Framework
test-python-netfx *args:
uv run pytest --runtime netfx {{ args }}
# Run Python tests executed via .NET test runner
test-python-from-dotnet platform=default_platform *args:
dotnet test --runtime any-{{ platform }} src/python_tests_runner/ {{ args }}
# Run embedding tests
test-embed runtime=("any-" + default_platform) *args:
dotnet test --runtime {{ runtime }} src/embed_tests/ {{ args }}
# Run embedding tests with .NET Core
test-embed-core platform=default_platform *args:
dotnet test --runtime any-{{ platform }} --framework net10.0 --logger "console;verbosity=detailed" src/embed_tests/ {{ args }}
# Run embedding tests with Mono / .NET Framework
[env("MONO_THREADS_SUSPEND", "preemptive")]
test-embed-mono platform=default_platform *args:
dotnet test --runtime any-{{ platform }} --framework net472 --logger "console;verbosity=detailed" src/embed_tests/ {{ args }}