Skip to content

Commit d3436b2

Browse files
Update GitHub Actions to use upload-artifact@v4 for consistency across workflows; simplify info_command output in CLI
1 parent 6f2679c commit d3436b2

5 files changed

Lines changed: 7 additions & 27 deletions

File tree

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ jobs:
8989
make html
9090
9191
- name: Upload docs artifact
92-
uses: actions/upload-artifact@v3
92+
uses: actions/upload-artifact@v4
9393
with:
9494
name: documentation
9595
path: docs/_build/html/
@@ -115,7 +115,7 @@ jobs:
115115
safety check --json --output safety-report.json || true
116116
117117
- name: Upload security reports
118-
uses: actions/upload-artifact@v3
118+
uses: actions/upload-artifact@v4
119119
with:
120120
name: security-reports
121121
path: |

.github/workflows/code-quality.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ jobs:
8181
run: safety check --json --output safety-report.json
8282

8383
- name: Upload security reports
84-
uses: actions/upload-artifact@v3
84+
uses: actions/upload-artifact@v4
8585
with:
8686
name: security-reports-pr
8787
path: |

.github/workflows/docs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
make html
2929
3030
- name: Upload documentation
31-
uses: actions/upload-artifact@v3
31+
uses: actions/upload-artifact@v4
3232
with:
3333
name: documentation
3434
path: docs/_build/html/

.github/workflows/release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
run: twine check dist/*
2828

2929
- name: Upload build artifacts
30-
uses: actions/upload-artifact@v3
30+
uses: actions/upload-artifact@v4
3131
with:
3232
name: dist
3333
path: dist/
@@ -40,7 +40,7 @@ jobs:
4040

4141
steps:
4242
- name: Download build artifacts
43-
uses: actions/download-artifact@v3
43+
uses: actions/download-artifact@v4
4444
with:
4545
name: dist
4646
path: dist/

eopf_geozarr/cli.py

Lines changed: 1 addition & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -120,27 +120,7 @@ def info_command(args: argparse.Namespace) -> None:
120120
print(f"Total groups: {len(dt.children)}")
121121

122122
print("\nGroup structure:")
123-
for group_name, group in dt.groups.items():
124-
print(f" {group_name}:")
125-
if hasattr(group, "data_vars") and group.data_vars:
126-
print(f" Variables: {list(group.data_vars.keys())}")
127-
# Get dimensions from first variable
128-
first_var = list(group.data_vars.keys())[0]
129-
if hasattr(group[first_var], "shape"):
130-
print(f" Shape: {group[first_var].shape}")
131-
if hasattr(group[first_var], "dims"):
132-
print(f" Dimensions: {group[first_var].dims}")
133-
134-
if hasattr(group, "coords") and group.coords:
135-
print(f" Coordinates: {list(group.coords.keys())}")
136-
137-
# Check for CRS information
138-
if hasattr(group, "data_vars"):
139-
for var_name, var in group.data_vars.items():
140-
if hasattr(var, "attrs") and "proj:epsg" in var.attrs:
141-
print(f" CRS (EPSG): {var.attrs['proj:epsg']}")
142-
break
143-
print()
123+
print(dt)
144124

145125
except Exception as e:
146126
print(f"❌ Error reading dataset: {e}")

0 commit comments

Comments
 (0)