FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
pythonnet/.github/workflows/main.yml at master · devtrack/pythonnet · GitHub
devtrack
pythonnet
Repository navigation
Code
Pull requests
1
(1)
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
99 lines (79 loc) · 2.81 KB
Breadcrumbs
pythonnet
/
.github
/
workflows
/
main.yml
Copy path
File metadata and controls
99 lines (79 loc) · 2.81 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
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
:
#
Disabled for now, will require some work (#2653)
#
#
- category: windows
#
platform: x86
#
instance: windows-latest
-
category
:
windows
platform
:
x64
instance
:
windows-latest
-
category
:
ubuntu
platform
:
x64
instance
:
ubuntu-22.04
-
category
:
ubuntu
platform
:
arm64
instance
:
ubuntu-22.04-arm
-
category
:
macos
platform
:
x64
instance
:
macos-13
python
:
["3.10", "3.11", "3.12", "3.13"]
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@v6
-
name
:
Setup .NET
uses
:
actions/setup-dotnet@v5
with
:
dotnet-version
:
'
8.0.x
'
-
name
:
Set up Python ${{ matrix.python }}
uses
:
astral-sh/setup-uv@v7
with
:
architecture
:
${{ matrix.os.platform }}
python-version
:
${{ matrix.python }}
cache-python
:
true
activate-environment
:
true
enable-cache
:
true
-
name
:
Synchronize the virtual environment
run
:
uv sync --managed-python
-
name
:
Show pyvenv.cfg
run
:
cat .venv/pyvenv.cfg
-
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
-
name
:
Python Tests (.NET Core)
run
:
pytest --runtime coreclr
-
name
:
Python Tests (.NET Framework)
if
:
${{ matrix.os.category == 'windows' }}
run
:
pytest --runtime netfx
-
name
:
Python tests run from .NET
#
For some reason, it won't find pytest on the Windows + 3.10
#
combination, which hints that it does not handle the venv properly in
#
this combination.
if
:
${{ matrix.os.category != 'windows' || matrix.python != '3.10' }}
run
:
dotnet test --runtime any-${{ matrix.os.platform }} src/python_tests_runner/
Back
|
FazBrowse Home
|
New Git URL