mirror of
https://github.com/TREX-CoE/trexio.git
synced 2024-12-23 04:43:57 +01:00
[wheel build] Test macos wheels
This commit is contained in:
parent
69e81c1032
commit
baa4b2a428
37
.github/workflows/build-wheels.yml
vendored
37
.github/workflows/build-wheels.yml
vendored
@ -82,8 +82,9 @@ jobs:
|
|||||||
CIBW_BEFORE_BUILD: >
|
CIBW_BEFORE_BUILD: >
|
||||||
cd tools &&
|
cd tools &&
|
||||||
./prepare_python.sh &&
|
./prepare_python.sh &&
|
||||||
cd ../python
|
rm -rf ../src/ ../tools/ &&
|
||||||
CIBW_BUILD_VERBOSITY: 1
|
mv ../python/* ..
|
||||||
|
CIBW_BUILD_VERBOSITY: 3
|
||||||
CIBW_BUILD_FRONTEND: "build"
|
CIBW_BUILD_FRONTEND: "build"
|
||||||
CIBW_ENVIRONMENT_LINUX: H5_CFLAGS="-I$(brew --prefix hdf5)/include" H5_LDFLAGS="-L$(brew --prefix hdf5)/lib"
|
CIBW_ENVIRONMENT_LINUX: H5_CFLAGS="-I$(brew --prefix hdf5)/include" H5_LDFLAGS="-L$(brew --prefix hdf5)/lib"
|
||||||
CIBW_TEST_REQUIRES: pytest
|
CIBW_TEST_REQUIRES: pytest
|
||||||
@ -95,38 +96,6 @@ jobs:
|
|||||||
name: ${{ matrix.python }}-${{ matrix.buildplat[1] }}
|
name: ${{ matrix.python }}-${{ matrix.buildplat[1] }}
|
||||||
path: ./wheelhouse/*.whl
|
path: ./wheelhouse/*.whl
|
||||||
|
|
||||||
- name: configure with autotools
|
|
||||||
run: |
|
|
||||||
./autogen.sh
|
|
||||||
./configure FC=gfortran-12 --enable-silent-rules
|
|
||||||
|
|
||||||
- name: compile TREXIO
|
|
||||||
run: make -j3
|
|
||||||
|
|
||||||
- name: check TREXIO
|
|
||||||
run: make -j3 check
|
|
||||||
|
|
||||||
- name: create venv
|
|
||||||
run: |
|
|
||||||
python3 -m venv trexio-venv
|
|
||||||
source trexio-venv/bin/activate
|
|
||||||
|
|
||||||
- name: compile Python API
|
|
||||||
run: |
|
|
||||||
|
|
||||||
|
|
||||||
- name: test Python API
|
|
||||||
run: |
|
|
||||||
source trexio-venv/bin/activate
|
|
||||||
make python-test
|
|
||||||
|
|
||||||
- name: Archive test log file
|
|
||||||
if: failure()
|
|
||||||
uses: actions/upload-artifact@82c141cc518b40d92cc801eee768e7aafc9c2fa2
|
|
||||||
with:
|
|
||||||
name: test-report-macos
|
|
||||||
path: test-suite.log
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# build_linux_wheels:
|
# build_linux_wheels:
|
||||||
|
Loading…
Reference in New Issue
Block a user