Skip to content

Commit da20fcd

Browse files
author
Test User
committed
feat: Add GitHub Actions workflow to test distributions on TestPyPI
- Creates .github/workflows/test-pypi-release.yml - Automatically triggered by: manual dispatch (workflow_dispatch) or tagged releases (v* and test-release-*) - Build stage: Creates wheel and sdist distributions using hatch - Upload stage: Publishes distributions to TestPyPI (not production PyPI) - Test stage: Validates installation from TestPyPI across Python 3.9 and 3.11 - Includes smoke tests to verify basic zarr operations work after installation - Properly configured with GitHub environment secrets and fail-fast strategy This workflow catches packaging issues early and validates the release process before pushing to production PyPI. Fixes zarr-developers#3798
1 parent 3e7e268 commit da20fcd

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

.github/workflows/test-pypi-release.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
---
12
name: Test PyPI Release
23

34
on:
@@ -91,7 +92,7 @@ jobs:
9192
import zarr
9293
print(f'zarr version: {zarr.__version__}')
9394
print(f'zarr location: {zarr.__file__}')
94-
95+
9596
# Basic functionality test
9697
store = zarr.MemoryStore()
9798
root = zarr.open_group(store=store, mode='w')

changes/3798.feature.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Add GitHub Actions workflow to test distributions on TestPyPI before releases. This workflow validates the package build process, ensures uploads work correctly, and confirms installation from TestPyPI succeeds across multiple Python versions, catching packaging issues early.

0 commit comments

Comments
 (0)