16
16
# macos-13 is an intel runner, macos-14 is a arm64 runner
17
17
platform : [ubuntu-latest, windows-latest, macos-13, macos-14]
18
18
19
+ defaults :
20
+ run :
21
+ shell : bash -el {0}
22
+
19
23
steps :
20
24
- name : Checkout source
21
25
uses : actions/checkout@v4
@@ -26,80 +30,47 @@ jobs:
26
30
- name : Set up Conda
27
31
uses :
conda-incubator/[email protected]
28
32
with :
29
- channels : conda-forge
30
- miniforge-version : latest
31
- python-version : ${{ matrix.python-version }}
33
+ channels : conda-forge
34
+ miniforge-version : latest
35
+ python-version : ${{ matrix.python-version }}
32
36
33
- - name : Show info about `base` environment
34
- shell : " bash -l {0}"
35
- run : |
36
- conda info
37
- conda config --show-sources
38
- conda list --show-channel-urls
39
-
40
- - name : Set up `env`
41
- shell : " bash -l {0}"
42
- run : >
43
- conda create -n env
44
- c-compiler cxx-compiler
45
- python=${{matrix.python-version}} wheel pip
37
+ - name : Install compilers
38
+ run : conda install -y c-compiler cxx-compiler
46
39
47
40
- name : Install clang
48
- shell : " bash -l {0}"
49
41
if : matrix.platform == 'macos-13'
50
- run : |
51
- conda activate env
52
- conda install -y 'clang>=12.0.1,<17'
42
+ run : conda install -y 'clang>=12.0.1,<17'
53
43
54
- - name : Show info about `env` environment
55
- shell : " bash -l {0}"
44
+ - name : Show conda environment info
56
45
run : |
57
- conda list --show-channel-urls -n env
46
+ conda info
47
+ conda config --show-sources
48
+ conda list --show-channel-urls
58
49
59
50
- name : Install numcodecs
60
- shell : " bash -l {0}"
61
51
run : |
62
- conda activate env
63
52
export DISABLE_NUMCODECS_AVX2=""
64
53
# TODO: put back zfpy import when it supports numpy 2.0
65
- python -m pip install -v -e .[test,test_extras,msgpack,crc32c]
66
-
67
- - name : Install pcodec
68
- if : matrix.python-version != '3.13'
69
- shell : " bash -l {0}"
70
- run : |
71
- conda activate env
72
- python -m pip install -v ".[pcodec]"
54
+ python -m pip install -v -e .[test,test_extras,msgpack,crc32c,pcodec]
73
55
74
56
- name : Install zarr-python
75
- shell : " bash -l {0}"
76
57
# Since zarr v3 requires numpy >= 1.25, on Python 3.11 leave it out
77
58
# so we can have some tests of our minimum version of numpy (1.24)
78
59
if : matrix.python-version != '3.11'
79
- run : |
80
- conda activate env
81
- # TODO: remove --pre option when zarr v3 is out
82
- python -m pip install --pre zarr>=3.0.0b2
60
+ # TODO: remove --pre option when zarr v3 is out
61
+ run : python -m pip install --pre zarr>=3.0.0b2
83
62
84
63
# This is used to test with zfpy, which does not yet support numpy 2.0
85
64
- name : Install older numpy and zfpy
86
65
if : matrix.python-version == '3.11'
87
- shell : " bash -l {0}"
88
- run : |
89
- conda activate env
90
- python -m pip install -v ".[zfpy]"
66
+ run : python -m pip install -v ".[zfpy]"
91
67
92
68
- name : List installed packages
93
- shell : " bash -l {0}"
94
- run : |
95
- conda activate env
96
- python -m pip list
69
+ run : python -m pip list
97
70
98
71
- name : Run tests
99
72
shell : " bash -l {0}"
100
- run : |
101
- conda activate env
102
- pytest -v
73
+ run : pytest -v
103
74
104
75
- uses : codecov/codecov-action@v5
105
76
with :
0 commit comments