hdf5/.github/workflows/h5py.yml
dependabot[bot] 184445f4a4
Bump the github-actions group with 4 updates (#3894)
Bumps the github-actions group with 4 updates: [actions/checkout](https://github.com/actions/checkout), [ossf/scorecard-action](https://github.com/ossf/scorecard-action), [github/codeql-action](https://github.com/github/codeql-action) and [actions/setup-python](https://github.com/actions/setup-python).

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-12-13 14:02:24 -06:00

39 lines
1.0 KiB
YAML

name: h5py
on:
workflow_dispatch:
schedule:
- cron: "6 0 * * *"
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Install Fortran
uses: fortran-lang/setup-fortran@v1
with:
compiler: gcc
version: 13
- name: Checkout Spack
uses: actions/checkout@v4.1.1
with:
repository: spack/spack
path: ./spack
- name: Run a multi-line script
run: |
sed -i 's/hdf5@1.8.4:1.14/hdf5@1.8.4:/g' \
./spack/var/spack/repos/builtin/packages/py-h5py/package.py
. ./spack/share/spack/setup-env.sh
./spack/bin/spack spec py-h5py@master+mpi ^hdf5@develop-1.15
./spack/bin/spack install py-h5py@master+mpi ^hdf5@develop-1.15
./spack/bin/spack install py-pytest
./spack/bin/spack install py-ipython
spack load py-h5py
spack load py-pytest
spack load py-ipython
pip install pytest-mpi
python -c "import h5py; h5py.run_tests(); print(h5py.version.info);"