Add pcodec to 32-bit CI #44
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Tests on i386 | |
| on: [push, pull_request] | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| build-i386: | |
| runs-on: ubuntu-latest | |
| defaults: | |
| run: | |
| shell: bash -el {0} | |
| steps: | |
| - name: Checkout source | |
| uses: actions/checkout@v4 | |
| with: | |
| submodules: recursive | |
| fetch-depth: 0 # required for version resolution | |
| - name: Setup Alpine Linux environment | |
| uses: jirutka/[email protected] | |
| with: | |
| arch: x86 | |
| branch: v3.19 # For Python 3.11 | |
| packages: > | |
| build-base | |
| git | |
| meson | |
| pkgconf | |
| poetry | |
| zstd | |
| python3 | |
| python3-dev | |
| py3-numpy | |
| py3-numpy-dev | |
| py3-pip | |
| py3-pytest | |
| rust | |
| maturin | |
| py3-maturin | |
| cargo | |
| cmake | |
| cython | |
| - name: Install zfp | |
| run: | | |
| poetry init | |
| PYTHON_INCLUDE=$(poetry run python -c 'from sysconfig import get_paths; print(get_paths()["include"])'); | |
| PYTHON_LIB=$(poetry run python -c 'import sysconfig; print(sysconfig.get_config_var("LIBDIR"))'); | |
| git clone https://github.com/LLNL/zfp | |
| mkdir zfp/build; | |
| poetry run cmake zfp -B zfp/build -DBUILD_ZFPY=ON -DBUILD_TESTING=OFF -DPYTHON_LIBRARY=$PYTHON_LIB -DPYTHON_INCLUDE_DIR=$PYTHON_INCLUDE | |
| poetry run make -C zfp/build | |
| cp zfp/build/lib*/libzfp* /usr/local/lib; | |
| cp zfp/build/lib*/libzfp* /usr/local/lib64; | |
| poetry add ./zfp | |
| shell: alpine.sh {0} | |
| - name: Install numcodecs | |
| run: | | |
| export DISABLE_NUMCODECS_AVX2="" | |
| poetry install --with test,test_extras,msgpack,crc32c,pcodec,zfpy | |
| shell: alpine.sh {0} | |
| - name: Install zarr-python | |
| # Since zarr v3 requires numpy >= 1.25, on Python 3.11 leave it out | |
| # so we can have some tests of our minimum version of numpy (1.24) | |
| if: matrix.python-version != '3.11' | |
| run: poetry add zarr>=3 | |
| shell: alpine.sh {0} | |
| - name: List installed packages | |
| run: poetry list | |
| shell: alpine.sh {0} | |
| - name: Run tests | |
| run: poetry run pytest -v | |
| shell: alpine.sh {0} |