1111 name : Build and test source distribution
1212 runs-on : ubuntu-latest
1313 steps :
14- - uses : actions/checkout@v5
15- - uses : actions/setup-python@v5
14+ - uses : actions/checkout@v7
15+ - uses : actions/setup-python@v6
1616 with :
1717 python-version : ' 3.12'
1818 cache : ' pip'
@@ -21,18 +21,19 @@ jobs:
2121 - run : python -m build --sdist
2222 - run : python -m twine check dist/*
2323 - run : pip install --pre "$(ls dist/hdf5plugin*.tar.gz)[test]"
24+ - run : pip uninstall -y blosc2_grok # https://github.com/silx-kit/hdf5plugin/issues/377
2425 - run : python test/test.py
25- - uses : actions/upload-artifact@v4
26+ - uses : actions/upload-artifact@v7
2627 with :
27- name : cibw-sdist
28- path : dist/*.tar.gz
28+ path : dist/hdf5plugin-*.tar.gz
29+ archive : false
2930
3031 build_doc :
3132 name : Build documentation
3233 runs-on : ubuntu-latest
3334 steps :
34- - uses : actions/checkout@v5
35- - uses : actions/setup-python@v5
35+ - uses : actions/checkout@v7
36+ - uses : actions/setup-python@v6
3637 with :
3738 python-version : " 3.12"
3839 cache : " pip"
@@ -45,10 +46,10 @@ jobs:
4546 export OUTPUT_NAME="hdf5plugin-$(python -c 'import hdf5plugin; print(hdf5plugin.version)')_documentation"
4647 sphinx-build doc/ "${OUTPUT_NAME}/"
4748 zip -r "${OUTPUT_NAME}.zip" "${OUTPUT_NAME}/"
48- - uses : actions/upload-artifact@v4
49+ - uses : actions/upload-artifact@v7
4950 with :
50- name : documentation
5151 path : hdf5plugin-*_documentation.zip
52+ archive : false
5253
5354 build_wheels :
5455 name : Build wheels on ${{ matrix.os }}-${{ matrix.cibw_archs }}
@@ -78,12 +79,12 @@ jobs:
7879 with_sse2 : false
7980
8081 steps :
81- - uses : actions/checkout@v5
82- - uses : docker/setup-qemu-action@v3
82+ - uses : actions/checkout@v7
83+ - uses : docker/setup-qemu-action@v4
8384 if : runner.os == 'Linux' && runner.arch == 'X64'
8485 with :
8586 platforms : all
86- - uses : pypa/cibuildwheel@v3.3.1
87+ - uses : pypa/cibuildwheel@v4.1.0
8788 env :
8889 # Configure hdf5plugin build
8990 HDF5PLUGIN_OPENMP : " False"
@@ -108,12 +109,12 @@ jobs:
108109 CIBW_ARCHS : ${{ matrix.cibw_archs }}
109110
110111 CIBW_TEST_SKIP : " *-*linux_ppc64le"
111- CIBW_BEFORE_TEST : pip install h5py --only-binary ":all:"
112+ CIBW_BEFORE_TEST : pip install packaging h5py --only-binary ":all:"
112113 CIBW_TEST_COMMAND : python {project}/test/test.py
113- - uses : actions/upload-artifact@v4
114+ - uses : actions/upload-artifact@v7
114115 with :
115- name : cibw-wheels-${{ matrix.os }}-${{ strategy.job-index }}
116- path : ./wheelhouse/*.whl
116+ path : ./wheelhouse/hdf5plugin-*.whl
117+ archive : false
117118
118119 test_wheels :
119120 needs : [build_wheels]
@@ -137,21 +138,23 @@ jobs:
137138 OLDEST_DEPENDENCIES : ' h5py==3.15.1 numpy==2.4.1'
138139
139140 steps :
140- - uses : actions/checkout@v5
141- - uses : actions/setup-python@v5
141+ - uses : actions/checkout@v7
142+ - uses : actions/setup-python@v6
142143 with :
143144 python-version : ${{ matrix.python-version }}
144145 cache : ' pip'
145- - uses : actions/download-artifact@v5
146+ - uses : actions/download-artifact@v8
146147 with :
147- pattern : cibw-wheels-*
148+ pattern : hdf5plugin-*.whl
148149 path : dist
149150 merge-multiple : true
151+ skip-decompress : true
150152 - name : Install hdf5plugin
151153 # First select the right wheel from dist/ with pip download, then install it
152154 run : |
153155 pip download --no-index --no-cache --no-deps --find-links=./dist --only-binary :all: hdf5plugin
154156 pip install "$(ls ./hdf5plugin-*.whl)[test]"
157+ pip uninstall -y blosc2_grok # https://github.com/silx-kit/hdf5plugin/issues/377
155158 - name : Run test with latest h5py
156159 run : python test/test.py
157160 - name : Run test with oldest h5py
@@ -171,9 +174,10 @@ jobs:
171174 # or, alternatively, upload to PyPI on every tag starting with 'v' (remove on: release above to use this)
172175 # if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v')
173176 steps :
174- - uses : actions/download-artifact@v5
177+ - uses : actions/download-artifact@v8
175178 with :
176- pattern : cibw-*
179+ pattern : hdf5plugin-*.{whl,tar.gz}
177180 path : dist
178181 merge-multiple : true
182+ skip-decompress : true
179183 - uses : pypa/gh-action-pypi-publish@release/v1
0 commit comments