This commit is contained in:
Victor 2022-01-09 12:05:12 -08:00 коммит произвёл GitHub
Родитель 67dded2401
Коммит f81b1c6b4b
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
2 изменённых файлов: 54 добавлений и 2 удалений

52
.github/workflows/ARM.yml поставляемый Normal file
Просмотреть файл

@ -0,0 +1,52 @@
name: GitHub Actions
on: [ push, pull_request ]
jobs:
build-test-oracle:
name: Build and Test ARM64
runs-on: [self-hosted, linux, ARM64]
timeout-minutes: 15
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Setup .NET
uses: actions/setup-dotnet@v1
with:
dotnet-version: '6.0.x'
- name: Clean previous install
run: |
pip uninstall -y pythonnet
- name: Install dependencies
run: |
pip install --upgrade -r requirements.txt
pip install pytest numpy # for tests
- name: Build and Install
run: |
pip install -v .
- name: Set Python DLL path (non Windows)
run: |
python -m pythonnet.find_libpython --export >> $GITHUB_ENV
- name: Embedding tests
run: dotnet test --logger "console;verbosity=detailed" src/embed_tests/
- name: Python Tests (Mono)
run: python -m pytest --runtime mono
- name: Python Tests (.NET Core)
run: python -m pytest --runtime netcore
- name: Python tests run from .NET
run: dotnet test src/python_tests_runner/
#- name: Perf tests
# run: |
# pip install --force --no-deps --target src/perf_tests/baseline/ pythonnet==2.5.2
# dotnet test --configuration Release --logger "console;verbosity=detailed" src/perf_tests/

Просмотреть файл

@ -20,11 +20,11 @@
<ItemGroup>
<PackageReference Include="NUnit" Version="3.*" />
<PackageReference Include="NUnit3TestAdapter" Version="3.*">
<PackageReference Include="NUnit3TestAdapter" Version="4.*">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.*" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.*" />
<PackageReference Include="Microsoft.NETFramework.ReferenceAssemblies" Condition="$(MSBuildRuntimeType) == 'Core'">
<Version>1.0.0</Version>
<PrivateAssets>all</PrivateAssets>