Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 23 additions & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ on:
workflow_dispatch:

jobs:
build:
tests:
name: "python ${{ matrix.python-version }} tests"
runs-on: ubuntu-latest
strategy:
Expand Down Expand Up @@ -44,3 +44,25 @@ jobs:
- name: Run unit tests
run: |
pytest .

# Auto-publish when version is increased
publish:
# Only try to publish if:
# * Repo is self (prevents running from forks)
# * Branch is `main`
if: |
github.repository == 'google/xarray-beam'
&& github.ref == 'refs/heads/main'
needs: tests # Only publish after tests are successful
runs-on: ubuntu-latest
permissions:
contents: write
timeout-minutes: 30

steps:
# Publish the package (if local `__version__` > pip version)
- uses: etils-actions/pypi-auto-publish@v1
with:
pypi-token: ${{ secrets.PYPI_API_TOKEN }}
gh-token: ${{ secrets.GITHUB_TOKEN }}
parse-changelog: false
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

setuptools.setup(
name='xarray-tensorstore',
version='0.1.5', # keep in sync with xarray_tensorstore.py
version='0.2.0', # keep in sync with xarray_tensorstore.py
license='Apache-2.0',
author='Google LLC',
author_email='noreply@google.com',
Expand Down
4 changes: 2 additions & 2 deletions xarray_tensorstore.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
import zarr


__version__ = '0.1.5' # keep in sync with setup.py
__version__ = '0.2.0' # keep in sync with setup.py


Index = TypeVar('Index', int, slice, np.ndarray, None)
Expand Down Expand Up @@ -319,7 +319,7 @@ def _tensorstore_open_concatenated_zarrs(
for k, spec in specs.items()
}
arrays_list.append(array_futures)

# Concatenate the tensorstore arrays
arrays = {}
for k, axis in zip(data_vars, concat_axes, strict=True):
Expand Down
Loading