Skip to content

Commit

Permalink
Try to fix CI (#229)
Browse files Browse the repository at this point in the history
Fix CI, loosen version pinning for n5 and bump version
  • Loading branch information
constantinpape authored Jun 15, 2024
1 parent 632fd55 commit c77f42e
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 15 deletions.
15 changes: 4 additions & 11 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
fail-fast: false
matrix:
os: [macos-latest, windows-latest, ubuntu-latest]
python-version: ['3.7', '3.8', '3.9', '3.10', '3.11']
python-version: ['3.9', '3.10', '3.11']

steps:
- name: Checkout
Expand All @@ -27,18 +27,11 @@ jobs:
- name: Set windows env
if: matrix.os == 'windows-latest'
uses: ilammy/msvc-dev-cmd@v1

- name: Setup miniconda
uses: conda-incubator/setup-miniconda@v2
- name: Setup micromamba
uses: mamba-org/setup-micromamba@v1
with:
activate-environment: z5-build-env
auto-update-conda: true
channels: conda-forge
environment-file: .github/workflows/environment.yaml
python-version: ${{ matrix.python-version }}
auto-activate-base: false
env:
ACTIONS_ALLOW_UNSECURE_COMMANDS: true

- name: Build unix
if: matrix.os == 'ubuntu-latest' || matrix.os == 'macos-latest'
Expand Down
2 changes: 1 addition & 1 deletion include/z5/z5.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@

#define Z5_VERSION_MAJOR 2
#define Z5_VERSION_MINOR 0
#define Z5_VERSION_PATCH 17
#define Z5_VERSION_PATCH 18
2 changes: 1 addition & 1 deletion src/python/module/z5py/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
from .group import Group
from .attribute_manager import set_json_encoder, set_json_decoder

__version__ = "2.0.17"
__version__ = "2.0.18"
__version_info__ = tuple(int(i) for i in __version__.split("."))
4 changes: 2 additions & 2 deletions src/python/module/z5py/file.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,8 @@ def _check_version(self):
version = metadata.get('n5', None)
if version is not None:
major_version = int(version[0])
if major_version > 2:
raise RuntimeError("Can't open n5 file with major version bigger than 2")
if major_version > 4:
raise RuntimeError("Can't open n5 file with major version bigger than 4")

def close(self):
# This function exists just for conformity with the standard file-handling procedure.
Expand Down

0 comments on commit c77f42e

Please sign in to comment.