1717 CT2_VERBOSE : 1
1818 strategy :
1919 matrix :
20- os : [ubuntu-20 .04]
20+ os : [ubuntu-22 .04]
2121 backend : [mkl, dnnl]
2222
2323 steps :
7474
7575
7676 build-and-test-cpp-aarch64 :
77- runs-on : ubuntu-20 .04
77+ runs-on : ubuntu-22 .04
7878 env :
7979 CT2_VERBOSE : 1
8080 strategy :
@@ -132,13 +132,15 @@ jobs:
132132 runs-on : ${{ matrix.os }}
133133 strategy :
134134 matrix :
135- os : [ubuntu-20 .04, windows-2019]
135+ os : [ubuntu-22 .04, windows-2019]
136136 arch : [auto64]
137137 include :
138- - os : ubuntu-20 .04
138+ - os : ubuntu-22 .04
139139 arch : aarch64
140140 - os : macos-13
141141 arch : arm64
142+ - os : macos-13
143+ arch : x86_64
142144
143145 steps :
144146 - uses : actions/checkout@v4
@@ -150,14 +152,14 @@ jobs:
150152 name : Set up QEMU
151153
152154 - name : Build wheels
153- uses : pypa/cibuildwheel@v2.21.3
155+ uses : pypa/cibuildwheel@v2.22.0
154156 with :
155157 package-dir : python
156158 output-dir : python/wheelhouse
157159 env :
158160 CIBW_ENVIRONMENT_PASS_LINUX : CIBW_ARCHS
159161 CIBW_ENVIRONMENT_WINDOWS : CTRANSLATE2_ROOT='${{ github.workspace }}\install'
160- CIBW_ENVIRONMENT_MACOS : CTRANSLATE2_ROOT='/usr/local'
162+ CIBW_ENVIRONMENT_MACOS : " CTRANSLATE2_ROOT='/usr/local' MACOSX_DEPLOYMENT_TARGET=10.13 "
161163 CIBW_BEFORE_ALL_LINUX : python/tools/prepare_build_environment_linux.sh
162164 CIBW_BEFORE_ALL_MACOS : python/tools/prepare_build_environment_macos.sh
163165 CIBW_BEFORE_ALL_WINDOWS : bash python/tools/prepare_build_environment_windows.sh
@@ -181,13 +183,13 @@ jobs:
181183 runs-on : ${{ matrix.os }}
182184 strategy :
183185 matrix :
184- os : [ubuntu-20 .04, windows-2019]
186+ os : [ubuntu-22 .04, windows-2019]
185187
186188 steps :
187- - name : Set up Python 3.8
189+ - name : Set up Python 3.9
188190 uses : actions/setup-python@v5
189191 with :
190- python-version : 3.8
192+ python-version : 3.9
191193
192194 - uses : actions/checkout@v4
193195
@@ -206,18 +208,18 @@ jobs:
206208 - name : Install wheel
207209 if : startsWith(matrix.os, 'ubuntu')
208210 run : |
209- pip install *cp38 *manylinux*x86_64.whl
211+ pip install *cp39 *manylinux*x86_64.whl
210212
211213 - name : Install wheel
212214 if : startsWith(matrix.os, 'windows')
213215 shell : bash
214216 run : |
215- pip install *cp38 *win*.whl
217+ pip install *cp39 *win*.whl
216218
217219 - name : Run tests
218220 shell : bash
219221 run : |
220- pytest -v python/tests/
222+ pytest -v python/tests/ --ignore=python/tests/test_opennmt_tf.py
221223
222224
223225 check-python-style :
@@ -226,10 +228,10 @@ jobs:
226228 steps :
227229 - uses : actions/checkout@v4
228230
229- - name : Set up Python 3.8
231+ - name : Set up Python 3.9
230232 uses : actions/setup-python@v5
231233 with :
232- python-version : 3.8
234+ python-version : 3.9
233235
234236 - name : Install dependencies
235237 run : |
@@ -255,7 +257,7 @@ jobs:
255257 publish-python-wheels-on-pypi :
256258 if : github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
257259 needs : [build-and-test-cpp-x86_64, build-python-wheels, test-python-wheels, check-python-style]
258- runs-on : ubuntu-20 .04
260+ runs-on : ubuntu-22 .04
259261
260262 steps :
261263 - name : Download Python wheels
@@ -274,7 +276,7 @@ jobs:
274276
275277
276278 build-and-push-docker-images :
277- runs-on : ubuntu-20 .04
279+ runs-on : ubuntu-22 .04
278280 steps :
279281 - uses : actions/checkout@v4
280282 with :
@@ -305,10 +307,10 @@ jobs:
305307 steps :
306308 - uses : actions/checkout@v4
307309
308- - name : Set up Python 3.8
310+ - name : Set up Python 3.9
309311 uses : actions/setup-python@v5
310312 with :
311- python-version : 3.8
313+ python-version : 3.9
312314
313315 - name : Download CTranslate2 wheels
314316 uses : actions/download-artifact@v4
@@ -319,7 +321,7 @@ jobs:
319321
320322 - name : Install CTranslate2 wheel
321323 run : |
322- pip install *cp38 *manylinux*x86_64.whl
324+ pip install *cp39 *manylinux*x86_64.whl
323325
324326 - name : Install dependencies to build docs
325327 working-directory : docs
0 commit comments