1616 # macos-13 is an intel runner, macos-14 is a arm64 runner
1717 platform : [ubuntu-latest, windows-latest, macos-13, macos-14]
1818
19+ defaults :
20+ run :
21+ shell : bash -el {0}
22+
1923 steps :
2024 - name : Checkout source
2125 uses : actions/checkout@v4
@@ -25,80 +29,54 @@ jobs:
2529 - name : Set up Conda
2630 uses :
conda-incubator/[email protected] 2731 with :
28- channels : conda-forge
29- miniforge-version : latest
30- python-version : ${{ matrix.python-version }}
32+ channels : conda-forge
33+ miniforge-version : latest
34+ python-version : ${{ matrix.python-version }}
3135
32- - name : Show info about `base` environment
33- shell : " bash -l {0}"
34- run : |
35- conda info
36- conda config --show-sources
37- conda list --show-channel-urls
38-
39- - name : Set up `env`
40- shell : " bash -l {0}"
41- run : >
42- conda create -n env
43- c-compiler cxx-compiler
44- python=${{matrix.python-version}} wheel pip
36+ - name : Install compilers
37+ run : conda install -y c-compiler cxx-compiler
4538
4639 - name : Install clang
47- shell : " bash -l {0}"
4840 if : matrix.platform == 'macos-13'
4941 run : |
50- conda activate env
5142 conda install -y 'clang>=12.0.1,<17'
5243
53- - name : Show info about `env` environment
54- shell : " bash -l {0}"
44+ - name : Show info about conda environment
5545 run : |
56- conda list --show-channel-urls -n env
46+ conda info
47+ conda config --show-sources
48+ conda list --show-channel-urls
5749
5850 - name : Install numcodecs
59- shell : " bash -l {0}"
6051 run : |
61- conda activate env
6252 export DISABLE_NUMCODECS_AVX2=""
6353 # TODO: put back zfpy import when it supports numpy 2.0
6454 python -m pip install -v -e .[test,test_extras,msgpack,crc32c]
6555
6656 - name : Install pcodec
6757 if : matrix.python-version != '3.13'
68- shell : " bash -l {0}"
6958 run : |
70- conda activate env
71- python -m pip install -v ".[pcodec]"
59+ python -m pip install -v ".[pcodec]"
7260
7361 - name : Install zarr-python
74- shell : " bash -l {0}"
7562 # Since zarr v3 requires numpy >= 1.25, on Python 3.11 leave it out
7663 # so we can have some tests of our minimum version of numpy (1.24)
7764 if : matrix.python-version != '3.11'
7865 run : |
79- conda activate env
8066 # TODO: remove --pre option when zarr v3 is out
8167 python -m pip install --pre zarr>=3.0.0b2
8268
8369 # This is used to test with zfpy, which does not yet support numpy 2.0
8470 - name : Install older numpy and zfpy
8571 if : matrix.python-version == '3.11'
86- shell : " bash -l {0}"
87- run : |
88- conda activate env
89- python -m pip install -v ".[zfpy]"
72+ run : python -m pip install -v ".[zfpy]"
9073
9174 - name : List installed packages
92- shell : " bash -l {0}"
93- run : |
94- conda activate env
95- python -m pip list
75+ run : python -m pip list
9676
9777 - name : Run tests
9878 shell : " bash -l {0}"
99- run : |
100- conda activate env
101- pytest -v
79+ run : pytest -v
10280
10381 - uses : codecov/codecov-action@v5
10482 with :
0 commit comments