| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 67dded2 commit f81b1c6
2 files changed
| Original file line number | Diff line number | Diff 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/ | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -20,11 +20,11 @@ | |||
| 20 | 20 | ||
| 21 | 21 | <ItemGroup> | |
| 22 | 22 | <PackageReference Include="NUnit" Version="3.*" /> | |
| 23 | - <PackageReference Include="NUnit3TestAdapter" Version="3.*"> | ||
| 23 | + <PackageReference Include="NUnit3TestAdapter" Version="4.*"> | ||
| 24 | 24 | <PrivateAssets>all</PrivateAssets> | |
| 25 | 25 | <IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets> | |
| 26 | 26 | </PackageReference> | |
| 27 | - <PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.*" /> | ||
| 27 | + <PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.*" /> | ||
| 28 | 28 | <PackageReference Include="Microsoft.NETFramework.ReferenceAssemblies" Condition="$(MSBuildRuntimeType) == 'Core'"> | |
| 29 | 29 | <Version>1.0.0</Version> | |
| 30 | 30 | <PrivateAssets>all</PrivateAssets> | |
| Back | FazBrowse Home | New Git URL |
0 commit comments