Skip to content

Commit a21e66c

Browse files
committed
added ARM64 CI action
1 parent 7e2ec4d commit a21e66c

File tree

2 files changed

+54
-2
lines changed

2 files changed

+54
-2
lines changed

.github/workflows/ARM.yml

+52
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
name: GitHub Actions
2+
3+
on: [ push, pull_request ]
4+
5+
jobs:
6+
build-test-oracle:
7+
name: Build and Test ARM64
8+
runs-on: [self-hosted, linux, ARM64]
9+
timeout-minutes: 15
10+
11+
steps:
12+
- name: Checkout code
13+
uses: actions/checkout@v2
14+
15+
- name: Setup .NET
16+
uses: actions/setup-dotnet@v1
17+
with:
18+
dotnet-version: '6.0.x'
19+
20+
- name: Clean previous install
21+
run: |
22+
pip uninstall -y pythonnet
23+
24+
- name: Install dependencies
25+
run: |
26+
pip install --upgrade -r requirements.txt
27+
pip install pytest numpy # for tests
28+
29+
- name: Build and Install
30+
run: |
31+
pip install -v .
32+
33+
- name: Set Python DLL path (non Windows)
34+
run: |
35+
python -m pythonnet.find_libpython --export >> $GITHUB_ENV
36+
37+
- name: Embedding tests
38+
run: dotnet test --logger "console;verbosity=detailed" src/embed_tests/
39+
40+
- name: Python Tests (Mono)
41+
run: python -m pytest --runtime mono
42+
43+
- name: Python Tests (.NET Core)
44+
run: python -m pytest --runtime netcore
45+
46+
- name: Python tests run from .NET
47+
run: dotnet test src/python_tests_runner/
48+
49+
#- name: Perf tests
50+
# run: |
51+
# pip install --force --no-deps --target src/perf_tests/baseline/ pythonnet==2.5.2
52+
# dotnet test --configuration Release --logger "console;verbosity=detailed" src/perf_tests/

src/embed_tests/Python.EmbeddingTest.csproj

+2-2
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,11 @@
2020

2121
<ItemGroup>
2222
<PackageReference Include="NUnit" Version="3.*" />
23-
<PackageReference Include="NUnit3TestAdapter" Version="3.*">
23+
<PackageReference Include="NUnit3TestAdapter" Version="4.*">
2424
<PrivateAssets>all</PrivateAssets>
2525
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
2626
</PackageReference>
27-
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.*" />
27+
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.*" />
2828
<PackageReference Include="Microsoft.NETFramework.ReferenceAssemblies" Condition="$(MSBuildRuntimeType) == 'Core'">
2929
<Version>1.0.0</Version>
3030
<PrivateAssets>all</PrivateAssets>

0 commit comments

Comments
 (0)