File tree Expand file tree Collapse file tree 4 files changed +58
-6
lines changed Expand file tree Collapse file tree 4 files changed +58
-6
lines changed Original file line number Diff line number Diff line change 44
55name : Run Ubuntu/Linux netCDF Tests
66
7- on : [workflow_dispatch]
7+ on : [pull_request, workflow_dispatch]
88
99env :
1010 REMOTETESTDOWN : ${{ vars.REMOTETESTDOWN }}
@@ -14,7 +14,23 @@ concurrency:
1414 cancel-in-progress : true
1515
1616jobs :
17-
17+
18+ build-python-tools :
19+ runs-on : ubuntu-22.04
20+ steps :
21+ - uses : actions/checkout@v4
22+
23+ - uses : actions/setup-python@v4
24+ with :
25+ python-version : ' 3.12'
26+
27+ - uses : astral-sh/setup-uv@v5
28+
29+ - name : Install Python tools
30+ run : |
31+ uv pip install .
32+ uv run testing-tools
33+
1834 build-deps-serial :
1935
2036 strategy :
@@ -243,7 +259,9 @@ jobs:
243259 # # Serial, Static
244260 nc-ac-tests-oneoff-serial-static :
245261
246- needs : build-deps-serial
262+ needs :
263+ - build-deps-serial
264+ - build-python-tools
247265
248266 strategy :
249267 matrix :
@@ -314,7 +332,7 @@ jobs:
314332 shell : bash -l {0}
315333 run : CFLAGS=${CFLAGS} LDFLAGS=${LDFLAGS} LD_LIBRARY_PATH=${LD_LIBRARY_PATH} make check TESTS="" -j
316334 if : ${{ success() }}
317-
335+
318336 - name : Run Tests
319337 shell : bash -l {0}
320338 run : |
@@ -332,7 +350,10 @@ jobs:
332350 # #
333351 nc-ac-tests-oneoff-parallel :
334352
335- needs : build-deps-parallel
353+ needs :
354+ - build-deps-parallel
355+ - build-python-tools
356+
336357 runs-on : ubuntu-22.04
337358
338359 strategy :
@@ -488,7 +509,7 @@ jobs:
488509 if : ${{ failure() }}
489510
490511 # #
491- # Serial, Shared
512+ # Serial, Static
492513 # #
493514 nc-cmake-tests-oneoff-serial-static :
494515
Original file line number Diff line number Diff line change 1+ requires = [" setuptools" , " wheel" ]
2+ build-backend = " setuptools.build_meta"
3+
4+ [project ]
5+ name = " zarr-python-testing-tools"
6+ version = " 0.1.0"
7+ description = " Script to create Zarr datasets using zarr-python"
8+ authors = [{
name =
" Your Name" ,
email =
" [email protected] " }]
9+ license = {text = " MIT" }
10+ dependencies = [
11+ " zarr<3" ,
12+ " xarray" ,
13+ ]
14+
15+ [tool .setuptools ]
16+ packages = [" pythontools" ]
17+
18+ [project .scripts ]
19+ testing-tools = " pythontools.main:run"
Original file line number Diff line number Diff line change 1+ #! /usr/bin/env python
2+ # -*- coding: utf-8 -*-
3+ """
4+ Script to create Zarr datasets using zarr-python"
5+ """
6+ import zarr , xarray as xr
7+
8+ def run ():
9+ print (f"Testing zarr-python compatibility using: zarr={ zarr .__version__ } " )
10+
11+ if __name__ == "__main__" :
12+ run ()
You can’t perform that action at this time.
0 commit comments