Skip to content

Commit

Permalink
Merge pull request #300 from ericpre/fix_CI
Browse files Browse the repository at this point in the history
Fix CI
  • Loading branch information
jlaehne authored Aug 6, 2024
2 parents e1fc1b0 + 04e5aff commit 8388ed6
Show file tree
Hide file tree
Showing 5 changed files with 31 additions and 12 deletions.
8 changes: 7 additions & 1 deletion .github/workflows/docs.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
name: Documentation

on: [push, pull_request]
on:
pull_request:
push:
branches-ignore:
- 'dependabot/*'
- 'pre-commit-ci-update-config'
workflow_dispatch:

jobs:
Build:
Expand Down
8 changes: 7 additions & 1 deletion .github/workflows/package_and_test.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
name: Package & Test

on: [push, pull_request]
on:
pull_request:
push:
branches-ignore:
- 'dependabot/*'
- 'pre-commit-ci-update-config'
workflow_dispatch:

jobs:
package_and_test:
Expand Down
20 changes: 13 additions & 7 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
name: Tests

on: [push, pull_request, workflow_dispatch]
on:
pull_request:
push:
branches-ignore:
- 'dependabot/*'
- 'pre-commit-ci-update-config'
workflow_dispatch:

jobs:
run_test_site:
Expand All @@ -23,7 +29,7 @@ jobs:
PYTHON_VERSION: '3.8'
# Set pillow and scikit-image version to be compatible with imageio and scipy
# matplotlib needs 3.5 to support markers in hyperspy 2.0 (requires `collection.set_offset_transform`)
DEPENDENCIES: matplotlib==3.5 numpy==1.20.0 tifffile==2022.7.28 dask[array]==2021.3.1 numba==0.52 imageio==2.16 pillow==8.3.2 scikit-image==0.18.0 python-box==6.0.0
DEPENDENCIES: matplotlib==3.5 numpy==1.20.0 tifffile==2022.7.28 dask[array]==2021.5.1 distributed==2021.5.1 numba==0.52 imageio==2.16 pillow==8.3.2 scikit-image==0.18.0 python-box==6.0.0
LABEL: '-oldest'
# test minimum requirement
- os: ubuntu
Expand Down Expand Up @@ -102,11 +108,6 @@ jobs:
python --version
pip --version
- name: Install oldest supported version
if: contains(matrix.LABEL, 'oldest')
run: |
pip install ${{ matrix.DEPENDENCIES }}
- name: Install hyperspy and exspy
if: ${{ ! contains(matrix.LABEL, 'without-hyperspy') }}
run: |
Expand Down Expand Up @@ -138,6 +139,11 @@ jobs:
run: |
pip uninstall -y pyUSID
- name: Install oldest supported version
if: contains(matrix.LABEL, 'oldest')
run: |
pip install ${{ matrix.DEPENDENCIES }}
- name: Install numpy 2.0
if: ${{ ! contains(matrix.LABEL, 'oldest') && matrix.PYTHON_VERSION != '3.8' }}
run: |
Expand Down
5 changes: 3 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ classifiers = [
"Topic :: Software Development :: Libraries",
]
dependencies = [
"dask[array] >=2021.3.1",
"dask[array] >=2021.5.1",
"python-dateutil",
"numpy >=1.20",
"pint >=0.8",
Expand Down Expand Up @@ -116,7 +116,8 @@ doc = [
"sphinx",
"sphinx-favicon",
"sphinxcontrib-towncrier",
"towncrier",
# unpin when sphinxcontrib-towncrier supports towncrier >=24
"towncrier<24",
]
all = [
"rosettasciio[blockfile]",
Expand Down
2 changes: 1 addition & 1 deletion rsciio/tiff/_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ def file_reader(
Force read image resolution using the ``x_resolution``, ``y_resolution``
and ``resolution_unit`` tiff tags. Beware: most software don't (properly)
use these tags when saving ``.tiff`` files.
See `<https://www.awaresystems.be/imaging/tiff/tifftags/resolutionunit.html>`_.
See `<https://www.loc.gov/preservation/digital/formats/content/tiff_tags.shtml>`_.
multipage_as_list : bool, default=False
Read multipage tiff and return list with full content of every page. This
utilises ``tifffile``s ``pages`` instead of ``series`` way of data access,
Expand Down

0 comments on commit 8388ed6

Please sign in to comment.