@@ -61,28 +61,14 @@ jobs:
61
61
matrix :
62
62
os :
63
63
- ubuntu-22.04
64
- - macos-13
65
64
# NOTE: There's no pre-built `grpcio` wheel for Python 3.11 yet
66
65
# https://github.com/grpc/grpc/issues/32454
67
66
python-version :
68
67
- " 3.9"
69
68
- " 3.10"
70
- is-pr :
71
- - ${{ github.event_name == 'pull_request' }}
72
- exclude :
73
- # MacOS tests take a lot of time, so we will run them only on merge
74
- # From https://github.com/orgs/community/discussions/26253
75
- - is-pr : true
76
- os : macos-13
77
69
runs-on : ${{ matrix.os }}
78
70
steps :
79
71
- uses : actions/checkout@v4
80
- - name : Setup Docker (missing on MacOS)
81
- if : runner.os == 'macos'
82
- run : ./hack/install-docker-macos.sh
83
- - name : Install OpenMP (in MacOS)
84
- if : runner.os == 'macOS'
85
- run : brew install libomp
86
72
- name : Set up Python ${{ matrix.python-version }}
87
73
uses : actions/setup-python@v5
88
74
with :
97
83
virtualenvs-create : false
98
84
- name : Install Dependencies
99
85
run : |
100
- if [[ ${{ runner.os == 'macOS' }} ]]; then
101
- source ./hack/activate-libomp-macos.sh
102
- fi
103
86
poetry install --sync --only dev
104
87
- name : Test
105
88
run : |
106
- if [[ ${{ runner.os == 'macOS' }} ]]; then
107
- source ./hack/activate-libomp-macos.sh
108
- fi
109
89
tox -e mlserver
110
90
111
91
runtimes :
114
94
matrix :
115
95
os :
116
96
- ubuntu-22.04
117
- - macos-13
118
97
python-version :
119
98
- " 3.9"
120
99
- " 3.10"
@@ -127,19 +106,9 @@ jobs:
127
106
- alibi-explain
128
107
- alibi-detect
129
108
- catboost
130
- is-pr :
131
- - ${{ github.event_name == 'pull_request' }}
132
- exclude :
133
- # MacOS tests take a lot of time, so we will run them only on merge
134
- # From https://github.com/orgs/community/discussions/26253
135
- - is-pr : true
136
- os : macos-13
137
109
runs-on : ${{ matrix.os }}
138
110
steps :
139
111
- uses : actions/checkout@v4
140
- - name : Install OpenMP (in MacOS)
141
- if : runner.os == 'macOS'
142
- run : brew install libomp
143
112
- name : Set up Python ${{ matrix.python-version }}
144
113
uses : actions/setup-python@v5
145
114
with :
@@ -154,15 +123,9 @@ jobs:
154
123
virtualenvs-create : false
155
124
- name : Install Dependencies
156
125
run : |
157
- if [[ ${{ runner.os == 'macOS' }} ]]; then
158
- source ./hack/activate-libomp-macos.sh
159
- fi
160
126
poetry install --sync --only dev
161
127
- name : Test
162
128
run : |
163
- if [[ ${{ runner.os == 'macOS' }} ]]; then
164
- source ./hack/activate-libomp-macos.sh
165
- fi
166
129
tox -c ./runtimes/${{ matrix.tox-environment }}
167
130
168
131
# Ensure that having all the runtimes installed together works
@@ -173,7 +136,6 @@ jobs:
173
136
matrix :
174
137
os :
175
138
- ubuntu-22.04
176
- - macos-13
177
139
python-version :
178
140
- " 3.9"
179
141
- " 3.10"
@@ -191,12 +153,6 @@ jobs:
191
153
overprovision-lvm : ' true'
192
154
swap-size-mb : 1024
193
155
- uses : actions/checkout@v4
194
- - name : Setup Docker (missing on MacOS)
195
- if : runner.os == 'macOS'
196
- run : ./hack/install-docker-macos.sh
197
- - name : Install OpenMP (in MacOS)
198
- if : runner.os == 'macOS'
199
- run : brew install libomp
200
156
- name : Set up Python ${{ matrix.python-version }}
201
157
uses : actions/setup-python@v5
202
158
with :
@@ -211,13 +167,7 @@ jobs:
211
167
virtualenvs-create : false
212
168
- name : Install Dependencies
213
169
run : |
214
- if [[ ${{ runner.os == 'macOS' }} ]]; then
215
- source ./hack/activate-libomp-macos.sh
216
- fi
217
170
poetry install --sync --only dev
218
171
- name : Test
219
172
run : |
220
- if [[ ${{ runner.os == 'macOS' }} ]]; then
221
- source ./hack/activate-libomp-macos.sh
222
- fi
223
173
tox -e all-runtimes
0 commit comments