@@ -5,50 +5,43 @@ on: [push, pull_request]
5
5
6
6
jobs :
7
7
8
- get_implementations :
8
+ build :
9
+
9
10
runs-on : ubuntu-latest
10
11
steps :
11
12
- name : Checkout
12
13
uses : actions/checkout@v3
13
- - name : List implementations
14
- id : set-matrix
15
- run : echo "matrix=$(cd implementations && ls -1 | jq -ncR '[inputs]')" >> $GITHUB_OUTPUT
16
- outputs :
17
- matrix : ${{ steps.set-matrix.outputs.matrix }}
18
-
19
- write_released :
20
- strategy :
21
- fail-fast : false
22
- matrix :
23
- implementation : ${{ fromJson(needs.get_implementations.outputs.matrix) }}
24
- platform : [ubuntu-latest]
25
- python-version : [3.8]
26
- zarr-python : [released]
27
- needs : [get_implementations]
28
- uses : ./.github/workflows/impl.yml
29
- with :
30
- implementation : ${{ matrix.implementation }}
31
- platform : ${{ matrix.platform }}
32
- python-version : ${{ matrix.python-version }}
33
- zarr-python : ${{ matrix.zarr-python }}
34
- action : write
35
-
36
- read_released :
37
- strategy :
38
- fail-fast : false
39
- matrix :
40
- implementation : ${{ fromJson(needs.get_implementations.outputs.matrix) }}
41
- platform : [ubuntu-latest]
42
- python-version : [3.8]
43
- zarr-python : [pre]
44
- # Run the read job regardless once writing is complete
45
- # TMP needs: [write_pre, write_released]
46
- needs : [write_released]
47
- if : ${{ always() }}
48
- uses : ./.github/workflows/impl.yml
49
- with :
50
- implementation : ${{ matrix.implementation }}
51
- platform : ${{ matrix.platform }}
52
- python-version : ${{ matrix.python-version }}
53
- zarr-python : ${{ matrix.zarr-python }}
54
- action : read
14
+
15
+ - name : Cache conda
16
+ uses : actions/cache@v3
17
+ env :
18
+ # Increase this value to reset cache if etc/example-environment.yml has not changed
19
+ CACHE_NUMBER : 0
20
+ with :
21
+ path : ~/conda_pkgs_dir
22
+
23
+ - name : Setup miniconda
24
+ uses : conda-incubator/setup-miniconda@v2
25
+ with :
26
+ auto-update-conda : true
27
+ activate-environment : ZI
28
+ channels : conda-forge,defaults
29
+ channel-priority : true
30
+ environment-file : environment.yml
31
+ mamba-version : " *"
32
+ env :
33
+ ACTIONS_ALLOW_UNSECURE_COMMANDS : true
34
+
35
+ - name : Cache local Maven repository
36
+ uses : actions/cache@v3
37
+ with :
38
+ path : ~/.m2/repository
39
+ key : ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
40
+ restore-keys : |
41
+ ${{ runner.os }}-maven-
42
+
43
+ - name : Run build
44
+ shell : bash -el {0}
45
+ run : |
46
+ make write;
47
+ test/test_read_all.py
0 commit comments