summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorH. Joe Lee <hyoklee@hdfgroup.org>2023-06-08 15:47:35 (GMT)
committerGitHub <noreply@github.com>2023-06-08 15:47:35 (GMT)
commit74f1a6e5b4c471e843ef626097ce596a45e2db95 (patch)
tree62ee136fe9e5657a321141336b4b03e402c0da89
parent44dccb5b15c146358f8544d492f678a469ef721d (diff)
downloadhdf5-74f1a6e5b4c471e843ef626097ce596a45e2db95.zip
hdf5-74f1a6e5b4c471e843ef626097ce596a45e2db95.tar.gz
hdf5-74f1a6e5b4c471e843ef626097ce596a45e2db95.tar.bz2
ci: add h5py action (#2986) (#3028)
-rw-r--r--.github/workflows/h5py.yml36
1 files changed, 36 insertions, 0 deletions
diff --git a/.github/workflows/h5py.yml b/.github/workflows/h5py.yml
new file mode 100644
index 0000000..fb82dc1
--- /dev/null
+++ b/.github/workflows/h5py.yml
@@ -0,0 +1,36 @@
+name: h5py
+on:
+ workflow_dispatch:
+ schedule:
+ - cron: "6 0 * * *"
+
+jobs:
+ build:
+ runs-on: ubuntu-latest
+ steps:
+ - name: Install gfortran
+ run: |
+ sudo apt-get update
+ sudo apt-get install -y gfortran-12
+ - name: Checkout Spack
+ uses: actions/checkout@v3
+ 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/bin/spack install py-pip
+ spack load py-h5py
+ spack load py-pytest
+ spack load py-ipython
+ spack load py-pip
+ pip install pytest-mpi
+ python -c "import h5py; h5py.run_tests(); print(h5py.version.info);"