-
Notifications
You must be signed in to change notification settings - Fork 2
48 lines (45 loc) · 1.37 KB
/
python-package-binaries.yml
File metadata and controls
48 lines (45 loc) · 1.37 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
name: Python Package using pre-built Linux binaries
on:
pull_request:
branches: [main]
types: [synchronize, opened, reopened, ready_for_review]
jobs:
build-and-test:
name: Test on ${{ matrix.os }} - Python ${{ matrix.python-version }} - Zarr ${{ matrix.zarr-version }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: ["ubuntu-22.04", "ubuntu-24.04"]
python-version: ["3.11", "3.13"]
zarr-version: ["2.18.4", "3.1.6"]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Python version
run: |
which python
- name: ldd version
run: |
ldd --version
- name: Install dependencies
run: |
pip install .[test]
- name: Install Zarr
run: |
pip install zarr==${{ matrix.zarr-version }}
- name: Downgrade numcodecs
if: matrix.zarr-version == '2.18.4'
run: |
pip install "numcodecs<0.16.0"
- name: Installed wavpack version
run: |
python -c "import wavpack_numcodecs; print(wavpack_numcodecs.wavpack_version)"
- name: Test imports and version
run: |
pytest -s tests/test_imports.py
- name: Test with pytest
run: |
pytest -v