File tree Expand file tree Collapse file tree 1 file changed +13
-4
lines changed
Expand file tree Collapse file tree 1 file changed +13
-4
lines changed Original file line number Diff line number Diff line change @@ -5,18 +5,26 @@ on: [ pull_request, push ]
55jobs :
66 build-test :
77 name : Build and Test
8- runs-on : ubuntu -latest
8+ runs-on : ${{ matrix.os }} -latest
99
1010 strategy :
1111 fail-fast : false
1212 matrix :
13+ os : [windows, ubuntu, macos]
1314 python : [3.6, 3.7, 3.8, 3.9]
15+ platform : [x64]
1416 shutdown_mode : [Normal, Soft]
1517
1618 env :
1719 PYTHONNET_SHUTDOWN_MODE : ${{ matrix.SHUTDOWN_MODE }}
1820
1921 steps :
22+ - name : Set Environment on macOS
23+ uses : maxim-lobanov/setup-xamarin@v1
24+ if : ${{ matrix.os == 'macos' }}
25+ with :
26+ mono-version : latest
27+
2028 - name : Checkout code
2129 uses : actions/checkout@v2
2230
2735 uses : actions/setup-python@v2
2836 with :
2937 python-version : ${{ matrix.python }}
38+ architecture : ${{ matrix.platform }}
3039
3140 - name : Install dependencies
3241 run : |
4150 run : pytest
4251
4352 - name : Run Embedding tests
44- run : dotnet test src/embed_tests/
53+ run : dotnet test --runtime any-${{ matrix.platform }} src/embed_tests/
54+ if : ${{ matrix.os != 'macos' }} # Not working right now, doesn't find libpython
4555
4656 # TODO: Run perf tests
47- # TODO: Run tests on macos and windows as well
48- # TODO: Run tests on Windows on .NET Framework
57+ # TODO: Run mono tests on Windows?
You can’t perform that action at this time.
0 commit comments