@@ -189,11 +189,11 @@ jobs:
189189 path : release/*
190190
191191
192- smoke_test_install_and_run_pypi_wheels_on_posix :
192+ smoke_test_install_and_run_pypi_wheels_on_linux :
193193 permissions :
194194 contents : read # to fetch code (actions/checkout)
195195
196- name : Test PyPI wheels on linux and mac
196+ name : Test PyPI wheels on linux
197197 needs :
198198 - build_scancode_wheels_sdist_for_pypi
199199 runs-on : ${{ matrix.os }}
@@ -205,7 +205,7 @@ jobs:
205205 strategy :
206206 fail-fast : true
207207 matrix :
208- os : [ubuntu-24.04, ubuntu-24.04, macos-14, macos-15 ]
208+ os : [ubuntu-24.04, ubuntu-24.04]
209209 pyver : ["3.10", "3.11", "3.12", "3.13", "3.14"]
210210
211211 steps :
@@ -239,6 +239,55 @@ jobs:
239239 done
240240
241241
242+ smoke_test_install_and_run_pypi_wheels_on_macos :
243+ permissions :
244+ contents : read # to fetch code (actions/checkout)
245+
246+ name : Test PyPI wheels on mac
247+ needs :
248+ - build_scancode_wheels_sdist_for_pypi
249+ runs-on : ${{ matrix.os }}
250+
251+ defaults :
252+ run :
253+ shell : bash
254+
255+ strategy :
256+ fail-fast : true
257+ matrix :
258+ os : [macos-14, macos-15]
259+ pyver : ["3.10", "3.11", "3.12", "3.13", "3.14"]
260+
261+ steps :
262+ - uses : actions/checkout@v4
263+
264+ - name : Set up Python ${{ matrix.pyver }} on ${{ matrix.os }}
265+ uses : actions/setup-python@v5
266+ with :
267+ python-version : ${{ matrix.pyver }}
268+
269+ - name : Download wheels artifact
270+ uses : actions/download-artifact@v4
271+ with :
272+ name : wheels_sdist
273+ path : dist
274+
275+ - name : install and test wheels
276+ run : |
277+ echo "license: gpl-2.0" > some.file
278+ rm -rf venv; \
279+ python -m venv venv
280+ venv/bin/python -m pip install --upgrade pip wheel setuptools
281+ for f in `find dist -type f -name "licensedcode*.whl"`; \
282+ do \
283+ venv/bin/python -m pip install --force-reinstall "$f" ; \
284+ done
285+ for f in `find dist -type f -name "scancode_toolkit_mini-*.whl"`; \
286+ do \
287+ venv/bin/python -m pip install --force-reinstall "$f[full]" ; \
288+ venv/bin/scancode -clipeu --json-pp - some.file ; \
289+ done
290+
242291 smoke_test_install_and_run_pypi_wheels_on_windows :
243292 permissions :
244293 contents : read # to fetch code (actions/checkout)
@@ -556,7 +605,8 @@ jobs:
556605 needs :
557606 - build_scancode_wheels_sdist_for_pypi
558607 - smoke_test_install_and_run_pypi_wheels_on_windows
559- - smoke_test_install_and_run_pypi_wheels_on_posix
608+ - smoke_test_install_and_run_pypi_wheels_on_macos
609+ - smoke_test_install_and_run_pypi_wheels_on_linux
560610 - publish_to_gh_release
561611 runs-on : ubuntu-24.04
562612 environment : pypi-publish
0 commit comments