FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
pythonnet/.github/workflows/main.yml at master · sdpython/pythonnet · GitHub
This repository was archived by the owner on Jul 22, 2023. It is now read-only.
sdpython
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
62 lines (48 loc) · 1.61 KB
Breadcrumbs
pythonnet
/
.github
/
workflows
/
main.yml
Copy path
File metadata and controls
62 lines (48 loc) · 1.61 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
name
:
GitHub Actions
on
:
[ pull_request, push ]
jobs
:
build-test
:
name
:
Build and Test
runs-on
:
${{ matrix.os }}-latest
timeout-minutes
:
5
strategy
:
fail-fast
:
false
matrix
:
os
:
[windows, ubuntu, macos]
python
:
[3.6, 3.7, 3.8, 3.9]
platform
:
[x64]
shutdown_mode
:
[Normal, Soft]
env
:
PYTHONNET_SHUTDOWN_MODE
:
${{ matrix.SHUTDOWN_MODE }}
steps
:
-
name
:
Set Environment on macOS
uses
:
maxim-lobanov/setup-xamarin@v1
if
:
${{ matrix.os == 'macos' }}
with
:
mono-version
:
latest
-
name
:
Checkout code
uses
:
actions/checkout@v2
-
name
:
Setup .NET
uses
:
actions/setup-dotnet@v1
-
name
:
Set up Python ${{ matrix.python }}
uses
:
actions/setup-python@v2
with
:
python-version
:
${{ matrix.python }}
architecture
:
${{ matrix.platform }}
-
name
:
Install dependencies
run
:
|
pip install --upgrade -r requirements.txt
-
name
:
Build and Install
run
:
|
python setup.py configure
pip install -v .
-
name
:
Python Tests
run
:
pytest
-
name
:
Embedding tests
run
:
dotnet test --runtime any-${{ matrix.platform }} src/embed_tests/
if
:
${{ matrix.os != 'macos' }}
#
Not working right now, doesn't find libpython
-
name
:
Python tests run from .NET
run
:
dotnet test --runtime any-${{ matrix.platform }} src/python_tests_runner/
if
:
${{ matrix.os == 'windows' }}
#
Not working for others right now
#
TODO: Run perf tests
#
TODO: Run mono tests on Windows?
Back
|
FazBrowse Home
|
New Git URL