4242
4343 tests :
4444 name : Build and Test
45- runs-on : ${{ matrix.os }}-latest
45+ runs-on : ${{ matrix.os.instance }}
4646 timeout-minutes : 15
4747
4848 strategy :
7070 steps :
7171 - name : Set Environment on macOS
7272 uses : maxim-lobanov/setup-xamarin@v1
73- if : ${{ matrix.os == 'macos' }}
73+ if : ${{ matrix.os.category == 'macos' }}
7474 with :
7575 mono-version : latest
7676
8686 uses : actions/setup-python@v2
8787 with :
8888 python-version : ${{ matrix.python }}
89- architecture : ${{ matrix.platform }}
89+ architecture : ${{ matrix.os. platform }}
9090
9191 - name : Install dependencies
9292 run : |
@@ -98,43 +98,43 @@ jobs:
9898 pip install -v .
9999
100100 - name : Set Python DLL path and PYTHONHOME (non Windows)
101- if : ${{ matrix.os != 'windows' }}
101+ if : ${{ matrix.os.category != 'windows' }}
102102 run : |
103103 echo PYTHONNET_PYDLL=$(python -m find_libpython) >> $GITHUB_ENV
104104 echo PYTHONHOME=$(python -c 'import sys; print(sys.prefix)') >> $GITHUB_ENV
105105
106106 - name : Set Python DLL path and PYTHONHOME (Windows)
107- if : ${{ matrix.os == 'windows' }}
107+ if : ${{ matrix.os.category == 'windows' }}
108108 run : |
109109 Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append -InputObject "PYTHONNET_PYDLL=$(python -m find_libpython)"
110110 Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append -InputObject "PYTHONHOME=$(python -c 'import sys; print(sys.prefix)')"
111111
112112 - name : Embedding tests
113- run : dotnet test --runtime any-${{ matrix.platform }} --logger "console;verbosity=detailed" src/embed_tests/
113+ run : dotnet test --runtime any-${{ matrix.os. platform }} --logger "console;verbosity=detailed" src/embed_tests/
114114 env :
115115 MONO_THREADS_SUSPEND : preemptive # https://github.com/mono/mono/issues/21466
116116
117117 - name : Python Tests (Mono)
118- if : ${{ matrix.os != 'windows' }}
118+ if : ${{ matrix.os.category != 'windows' }}
119119 run : pytest --runtime mono
120120
121121 # TODO: Run these tests on Windows x86
122122 - name : Python Tests (.NET Core)
123- if : ${{ matrix.platform == 'x64' }}
123+ if : ${{ matrix.os. platform == 'x64' }}
124124 run : pytest --runtime coreclr
125125
126126 - name : Python Tests (.NET Framework)
127- if : ${{ matrix.os == 'windows' }}
127+ if : ${{ matrix.os.category == 'windows' }}
128128 run : pytest --runtime netfx
129129
130130 - name : Python tests run from .NET
131- run : dotnet test --runtime any-${{ matrix.platform }} src/python_tests_runner/
131+ run : dotnet test --runtime any-${{ matrix.os. platform }} src/python_tests_runner/
132132
133133 - name : Perf tests
134- if : ${{ (matrix.python == '3.8') && (matrix.platform == 'x64') }}
134+ if : ${{ (matrix.python == '3.8') && (matrix.os. platform == 'x64') }}
135135 run : |
136136 pip install --force --no-deps --target src/perf_tests/baseline/ pythonnet==2.5.2
137- dotnet test --configuration Release --runtime any-${{ matrix.platform }} --logger "console;verbosity=detailed" src/perf_tests/
137+ dotnet test --configuration Release --runtime any-${{ matrix.os. platform }} --logger "console;verbosity=detailed" src/perf_tests/
138138
139139 - name : " Build library source and wheel artifacts"
140140 run : |
0 commit comments