Skip to content

Commit 8460460

Browse files
committed
Attempt simplifying GH build
1 parent 1dc6f47 commit 8460460

File tree

1 file changed

+35
-43
lines changed

1 file changed

+35
-43
lines changed

.github/workflows/build.yml

Lines changed: 35 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -5,50 +5,42 @@ on: [push, pull_request]
55

66
jobs:
77

8-
get_implementations:
8+
build:
9+
910
runs-on: ubuntu-latest
1011
steps:
1112
- name: Checkout
1213
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+
channels: conda-forge,defaults
28+
channel-priority: true
29+
environment-file: environment.yml
30+
mamba-version: "*"
31+
env:
32+
ACTIONS_ALLOW_UNSECURE_COMMANDS: true
33+
34+
- name: Cache local Maven repository
35+
uses: actions/cache@v3
36+
with:
37+
path: ~/.m2/repository
38+
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
39+
restore-keys: |
40+
${{ runner.os }}-maven-
41+
42+
- name: Run build
43+
shell: bash -l {0}
44+
run: |
45+
make write;
46+
test/test_read_all.py

0 commit comments

Comments
 (0)