FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
pythonnet/.github/workflows/main.yml at master · CLK-AL/pythonnet · GitHub
CLK-AL
pythonnet
Repository navigation
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
pythonnet
/
.github
/
workflows
/
main.yml
Copy path
View runs
More file actions
More file actions
Latest commit
History
History
History
106 lines (84 loc) · 3.25 KB
Breadcrumbs
pythonnet
/
.github
/
workflows
/
main.yml
Copy path
File metadata and controls
106 lines (84 loc) · 3.25 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
name
:
Main
on
:
push
:
branches
:
-
master
pull_request
:
jobs
:
build-test
:
name
:
Build and Test
runs-on
:
${{ matrix.os.instance }}
timeout-minutes
:
15
strategy
:
fail-fast
:
false
matrix
:
os
:
-
category
:
windows
platform
:
x86
instance
:
windows-latest
-
category
:
windows
platform
:
x64
instance
:
windows-latest
-
category
:
ubuntu
platform
:
x64
instance
:
ubuntu-latest
-
category
:
macos
platform
:
x64
instance
:
macos-13
python
:
["3.7", "3.8", "3.9", "3.10", "3.11", "3.12"]
steps
:
-
name
:
Set Environment on macOS
uses
:
maxim-lobanov/setup-xamarin@v1
if
:
${{ matrix.os.category == 'macos' }}
with
:
mono-version
:
latest
-
name
:
Checkout code
uses
:
actions/checkout@v2
-
name
:
Setup .NET
uses
:
actions/setup-dotnet@v1
with
:
dotnet-version
:
'
6.0.x
'
-
name
:
Set up Python ${{ matrix.python }}
uses
:
actions/setup-python@v2
with
:
python-version
:
${{ matrix.python }}
architecture
:
${{ matrix.os.platform }}
-
name
:
Install dependencies
run
:
|
pip install --upgrade -r requirements.txt
pip install numpy # for tests
-
name
:
Build and Install
run
:
|
pip install -v .
-
name
:
Set Python DLL path and PYTHONHOME (non Windows)
if
:
${{ matrix.os.category != 'windows' }}
run
:
|
echo PYTHONNET_PYDLL=$(python -m find_libpython) >> $GITHUB_ENV
echo PYTHONHOME=$(python -c 'import sys; print(sys.prefix)') >> $GITHUB_ENV
-
name
:
Set Python DLL path and PYTHONHOME (Windows)
if
:
${{ matrix.os.category == 'windows' }}
run
:
|
Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append -InputObject "PYTHONNET_PYDLL=$(python -m find_libpython)"
Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append -InputObject "PYTHONHOME=$(python -c 'import sys; print(sys.prefix)')"
-
name
:
Embedding tests
run
:
dotnet test --runtime any-${{ matrix.os.platform }} --logger "console;verbosity=detailed" src/embed_tests/
env
:
MONO_THREADS_SUSPEND
:
preemptive
#
https://github.com/mono/mono/issues/21466
-
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
:
dotnet test --runtime any-${{ matrix.os.platform }} src/python_tests_runner/
-
name
:
Perf tests
if
:
${{ (matrix.python == '3.8') && (matrix.os.platform == 'x64') }}
run
:
|
pip install --force --no-deps --target src/perf_tests/baseline/ pythonnet==2.5.2
dotnet test --configuration Release --runtime any-${{ matrix.os.platform }} --logger "console;verbosity=detailed" src/perf_tests/
#
TODO: Run mono tests on Windows?
Back
|
FazBrowse Home
|
New Git URL