-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #654 from bioimage-io/get_axis_size
add arg max_input_shape to v0_5.Model.get_axis_sizes()
- Loading branch information
Showing
19 changed files
with
338 additions
and
337 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,6 +16,7 @@ jobs: | |
include: | ||
- python-version: "3.12" | ||
is-dev-version: true | ||
run_expensive_tests: true | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-python@v5 | ||
|
@@ -29,12 +30,13 @@ jobs: | |
- name: Get Date | ||
id: get-date | ||
run: | | ||
echo "week=$(/bin/date -u "+%Y-%U")" >> $GITHUB_OUTPUT | ||
echo "date=$(date +'%Y-%b')" | ||
echo "date=$(date +'%Y-%b')" >> $GITHUB_OUTPUT | ||
shell: bash | ||
- uses: actions/cache@v3 | ||
- uses: actions/cache/restore@v4 | ||
with: | ||
path: tests/cache | ||
key: ${{ runner.os }}-${{ matrix.python-version }}-${{ steps.get-date.outputs.week }}-${{ hashFiles('**/lockfiles') }} | ||
path: bioimageio_cache | ||
key: "py${{ matrix.python-version }}-${{ steps.get-date.outputs.date }}" | ||
- name: Check autogenerated imports | ||
run: python scripts/generate_version_submodule_imports.py check | ||
- run: black --check . | ||
|
@@ -49,14 +51,22 @@ jobs: | |
- run: pyright -p pyproject.toml --pythonversion ${{ matrix.python-version }} | ||
if: matrix.is-dev-version | ||
- run: pytest | ||
env: | ||
BIOIMAGEIO_CACHE_PATH: bioimageio_cache | ||
SKIP_EXPENSIVE_TESTS: ${{ matrix.run_expensive_tests && 'false' || 'true' }} | ||
- uses: actions/cache/save@v4 | ||
# explicit restore/save instead of cache action to cache even if coverage fails | ||
with: | ||
path: bioimageio_cache | ||
key: "py${{ matrix.python-version }}-${{ steps.get-date.outputs.date }}" | ||
- if: matrix.is-dev-version && github.event_name == 'pull_request' | ||
uses: orgoro/[email protected] | ||
with: | ||
coverageFile: coverage.xml | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
thresholdAll: 0.75 | ||
thresholdAll: 0.7 | ||
thresholdNew: 0.9 | ||
thresholdModified: 0.85 | ||
thresholdModified: 0.6 | ||
- if: matrix.is-dev-version | ||
run: | | ||
pip install genbadge[coverage] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.