Skip to content

Commit d5929d6

Browse files
committed
Merge branch 'main' into auto-update-10.5281/zenodo.6559474
2 parents 5eb7137 + ef148d7 commit d5929d6

File tree

3 files changed

+14
-11
lines changed

3 files changed

+14
-11
lines changed

.github/workflows/auto_update_main.yaml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,9 +72,6 @@ jobs:
7272
mv tmp_download_counts.json dist/download_counts.json
7373
- name: update partner resources
7474
run: python scripts/update_partner_resources.py
75-
- name: add documentation files to preview
76-
if: github.event_name == 'pull_request'
77-
run: python scripts/download_documentation.py
7875
- name: Upload preview of updated partner resources
7976
if: github.event_name == 'pull_request'
8077
uses: actions/upload-artifact@v2

.github/workflows/validate_resources.yaml

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -132,17 +132,20 @@ jobs:
132132
run: python scripts/download_partner_test_summaries.py
133133
- name: prepare to deploy
134134
run: python scripts/prepare_to_deploy.py --branch ${{ github.head_ref || github.ref }}
135-
- name: Upload preview
136-
if: contains(inputs.deploy_to, 'preview')
137-
uses: actions/upload-artifact@v2
138-
with:
139-
name: preview
140-
path: dist/gh_pages_update
141-
retention-days: 90
142135
- name: Deploy to gh-pages 🚀
143136
if: contains(inputs.deploy_to, 'gh-pages')
144137
uses: JamesIves/[email protected]
145138
with:
146139
branch: gh-pages
147140
clean: false # Keeping the old files
148141
folder: dist/gh_pages_update
142+
- name: add documentation files to preview
143+
if: contains(inputs.deploy_to, 'preview') # only download documentation for preview to ease review
144+
run: python scripts/download_documentation.py --folder dist/gh_pages_update
145+
- name: Upload preview
146+
if: contains(inputs.deploy_to, 'preview')
147+
uses: actions/upload-artifact@v2
148+
with:
149+
name: preview
150+
path: dist/gh_pages_update
151+
retention-days: 90

scripts/static_validation.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,12 +83,15 @@ def get_default_env(
8383
if tensorflow_version is not None:
8484
# tensorflow 1 is not available on conda, so we need to inject this as a pip dependency
8585
if tensorflow_version.major == 1:
86+
tensorflow_version = max(tensorflow_version, Version("1.13")) # tf <1.13 not available anymore
8687
assert opset_version is None
8788
assert pytorch_version is None
8889
conda_env["dependencies"] = ["pip", "python >=3.7,<3.8"] # tf 1.15 not available for py>=3.8
8990
# get bioimageio.core (and its dependencies) via pip as well to avoid conda/pip mix
91+
# protobuf pin: tf 1 does not pin an upper limit for protobuf,
92+
# but fails to load models saved with protobuf 3 when installing protobuf 4.
9093
conda_env["dependencies"].append(
91-
{"pip": [f"bioimageio.core", f"tensorflow {get_version_range(tensorflow_version)}"]}
94+
{"pip": [f"bioimageio.core", f"tensorflow {get_version_range(tensorflow_version)}", "protobuf <4.0"]}
9295
)
9396
else: # use conda otherwise
9497
conda_env["dependencies"].append(f"tensorflow {get_version_range(tensorflow_version)}")

0 commit comments

Comments
 (0)