From a21e66cf8c3814ff838262451a243d0262e69233 Mon Sep 17 00:00:00 2001 From: Victor Nova Date: Sat, 8 Jan 2022 17:52:35 -0800 Subject: [PATCH] added ARM64 CI action --- .github/workflows/ARM.yml | 52 +++++++++++++++++++++ src/embed_tests/Python.EmbeddingTest.csproj | 4 +- 2 files changed, 54 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/ARM.yml diff --git a/.github/workflows/ARM.yml b/.github/workflows/ARM.yml new file mode 100644 index 000000000..cc56b7466 --- /dev/null +++ b/.github/workflows/ARM.yml @@ -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/ diff --git a/src/embed_tests/Python.EmbeddingTest.csproj b/src/embed_tests/Python.EmbeddingTest.csproj index a9c271f91..4993994d3 100644 --- a/src/embed_tests/Python.EmbeddingTest.csproj +++ b/src/embed_tests/Python.EmbeddingTest.csproj @@ -20,11 +20,11 @@ - + all runtime; build; native; contentfiles; analyzers; buildtransitive - + 1.0.0 all