1
0
mirror of https://github.com/TREX-CoE/trexio.git synced 2024-11-03 12:43:55 +01:00

[wheel build] Full-scale test of all wheels on Test PyPI

This commit is contained in:
q-posev 2024-08-18 00:32:43 +02:00
parent 1a167aee7a
commit 9038d5a68f

View File

@ -35,7 +35,7 @@ jobs:
build_macos_wheels:
name: build linux wheels for different versions of cpython on macos
name: build wheels for different versions of cpython on macos
needs: get_commit_message
if: >-
contains(needs.get_commit_message.outputs.message, '[wheel build]') ||
@ -53,11 +53,10 @@ jobs:
- [macos-13, macosx_x86_64]
- [macos-14, macosx_arm64]
# test config
python: ["cp310", "cp312"]
#python: ["cp38", "cp39", "cp310", "cp311", "cp312"]
#exclude:
# - buildplat: [macos-14, macosx_arm64]
# python: "cp38"
python: ["cp38", "cp39", "cp310", "cp311", "cp312"]
exclude:
- buildplat: [macos-14, macosx_arm64]
python: "cp38"
steps:
- uses: actions/checkout@e2f20e631ae6d7dd3b768f56a5d2af784dd54791
@ -75,13 +74,13 @@ jobs:
brew install wget
- uses: actions/cache@v3
id: cache
id: cache-hdf5
with:
path: $HDF5_INSTALLDIR
key: ${{ matrix.buildplat[0] }}-hdf5
- name: install hdf5
if: steps.cache.outputs.cache-hit != 'true'
if: ${{ steps.cache-hdf5.outputs.cache-hit != 'true' }}
run: |
wget https://github.com/HDFGroup/hdf5/archive/refs/tags/hdf5-1_12_3.tar.gz
tar -xzf hdf5-1_12_3.tar.gz
@ -118,11 +117,12 @@ jobs:
CIBW_PRERELEASE_PYTHONS: False
CIBW_FREE_THREADED_SUPPORT: False
CIBW_BUILD: ${{ matrix.python }}-${{ matrix.buildplat[1] }}
CIBW_BUILD_VERBOSITY: 3
CIBW_BUILD_VERBOSITY: 1
CIBW_BUILD_FRONTEND: "build"
CIBW_ENVIRONMENT: H5_CFLAGS="-I/Users/runner/work/trexio/trexio/hdf5/include" H5_LDFLAGS="-L/Users/runner/work/trexio/trexio/hdf5/lib"
CIBW_TEST_REQUIRES: pytest
CIBW_TEST_COMMAND: "python3 -m pytest -v test/test_api.py"
# disable pytest-ing for now - does not work as expected via CIBW on MacOS --> Ask Anthony to test locally
#CIBW_TEST_REQUIRES: pytest
#CIBW_TEST_COMMAND: "python3 -m pytest -v test/test_api.py"
- uses: actions/upload-artifact@834a144ee995460fba8ed112a2fc961b36a5ec5a # v4.3.6
@ -132,7 +132,7 @@ jobs:
build_linux_wheels:
name: build linux wheels for different versions of cpython on manylinux_x86_64
name: build wheels for different versions of cpython on manylinux_x86_64
needs: get_commit_message
if: >-
contains(needs.get_commit_message.outputs.message, '[wheel build]') ||
@ -195,7 +195,7 @@ jobs:
publish_wheels:
name: Publish all wheels on PyPI
needs: [build_linux_wheels]
needs: [build_linux_wheels, build_macos_wheels]
runs-on: ubuntu-22.04
steps: