mirror of
https://github.com/HDFGroup/hdf5.git
synced 2026-09-25 04:09:44 +03:00
37 lines
1.1 KiB
YAML
37 lines
1.1 KiB
YAML
name: h5py
|
|
|
|
# Triggers the workflow on a schedule or on demand
|
|
on:
|
|
workflow_dispatch:
|
|
schedule:
|
|
- cron: "6 0 * * *"
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout Spack
|
|
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
with:
|
|
persist-credentials: false
|
|
repository: spack/spack
|
|
path: ./spack
|
|
|
|
- name: Run a multi-line script
|
|
run: |
|
|
. ./spack/share/spack/setup-env.sh
|
|
./spack/bin/spack spec py-h5py@master+mpi
|
|
sed -i 's/hdf5@1.10.7:1.14/hdf5@1.10.7:/g' \
|
|
/home/runner/.spack/package_repos/*/repos/spack_repo/builtin/packages/py_h5py/package.py
|
|
./spack/bin/spack spec py-h5py@master+mpi ^hdf5@develop-2
|
|
./spack/bin/spack install py-h5py@master+mpi ^hdf5@develop-2
|
|
./spack/bin/spack install py-pytest
|
|
./spack/bin/spack install py-pytest-mpi
|
|
spack load py-h5py
|
|
spack load py-pytest
|
|
spack load py-pytest-mpi
|
|
python -c "import h5py; h5py.run_tests(); print(h5py.version.info);"
|