Skip to content

Commit 633d57d

Browse files
mkittid-v-b
andauthored
Test 32-bit support via x86 Alpine Setup Action Linux (#784)
* Try i386 container * Try i386/debian * Try to install docker * Try Alpine Linux * Use Alpinr platform x86 * Expand Alpine * Do not need manual checkout * Use uv * Remove uv init * Use uv venv * Remove docker * Add meson ans pkgconf to Alpine * Add python3-dev * Add py3-numpy, remove zfp * uv pip list * Add zstd package to Alpine --------- Co-authored-by: Davis Bennett <[email protected]>
1 parent b84bb76 commit 633d57d

File tree

1 file changed

+64
-0
lines changed

1 file changed

+64
-0
lines changed

.github/workflows/ci-i386.yml

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
name: Tests on i386
2+
3+
on: [push, pull_request]
4+
5+
concurrency:
6+
group: ${{ github.workflow }}-${{ github.ref }}
7+
cancel-in-progress: true
8+
9+
jobs:
10+
build-i386:
11+
runs-on: ubuntu-latest
12+
13+
defaults:
14+
run:
15+
shell: bash -el {0}
16+
17+
steps:
18+
- name: Checkout source
19+
uses: actions/checkout@v4
20+
with:
21+
submodules: recursive
22+
fetch-depth: 0 # required for version resolution
23+
24+
- name: Setup Alpine Linux environment
25+
uses: jirutka/[email protected]
26+
with:
27+
arch: x86
28+
packages: >
29+
build-base
30+
python3
31+
python3-dev
32+
git
33+
py3-pip
34+
py3-pytest
35+
uv
36+
meson
37+
pkgconf
38+
py3-numpy
39+
py3-numpy-dev
40+
zstd
41+
42+
- name: Install numcodecs
43+
run: |
44+
export DISABLE_NUMCODECS_AVX2=""
45+
uv venv
46+
uv pip install -v -e .[test,test_extras,msgpack,crc32c]
47+
shell: alpine.sh {0}
48+
49+
50+
- name: Install zarr-python
51+
# Since zarr v3 requires numpy >= 1.25, on Python 3.11 leave it out
52+
# so we can have some tests of our minimum version of numpy (1.24)
53+
if: matrix.python-version != '3.11'
54+
run: uv add zarr>=3
55+
shell: alpine.sh {0}
56+
57+
58+
- name: List installed packages
59+
run: uv pip list
60+
shell: alpine.sh {0}
61+
62+
- name: Run tests
63+
run: uv run pytest -v
64+
shell: alpine.sh {0}

0 commit comments

Comments
 (0)