66 pull_request :
77 branches : [ "**" ]
88
9+ defaults :
10+ run :
11+ shell : bash -l {0}
12+
913jobs :
1014 black :
1115 runs-on : ubuntu-latest
1216 steps :
13- - uses : actions/checkout@v2
17+ - uses : actions/checkout@v3
1418 - name : Check files using the black formatter
1519 uses : rickstaa/action-black@v1
1620 id : action_black
@@ -28,20 +32,18 @@ jobs:
2832 matrix :
2933 python-version : [3.7, 3.8, 3.9]
3034 steps :
31- - uses : actions/checkout@v2
35+ - uses : actions/checkout@v3
3236 - name : Install Conda environment with Micromamba
3337 uses : mamba-org/provision-with-micromamba@main
3438 with :
3539 cache-downloads : true
36- cache-env : false # debugging: torch does not detect onnxruntime
40+ cache-env : true
3741 environment-file : dev/environment-torch.yaml
3842 extra-specs : |
3943 python=${{ matrix.python-version }}
4044 - name : additional setup
41- shell : bash -l {0}
4245 run : pip install --no-deps -e .
4346 - name : pytest-spec-conda
44- shell : bash -l {0}
4547 run : pytest --disable-pytest-warnings
4648
4749 test-spec-main :
@@ -50,23 +52,21 @@ jobs:
5052 matrix :
5153 python-version : [3.7, 3.8, 3.9]
5254 steps :
53- - uses : actions/checkout@v2
55+ - uses : actions/checkout@v3
5456 - name : Install Conda environment with Micromamba
5557 uses : mamba-org/provision-with-micromamba@main
5658 with :
5759 cache-downloads : true
58- cache-env : false # todo: detect env cache hit and adapt(skip?) additional setup (conda remove?)
60+ cache-env : true
5961 environment-file : dev/environment-torch.yaml
6062 extra-specs : |
6163 python=${{ matrix.python-version }}
6264 - name : additional setup
63- shell : bash -l {0}
6465 run : |
65- conda remove --yes --force bioimageio.spec
66+ conda remove --yes --force bioimageio.spec || true # allow failure for cached env
6667 pip install --no-deps git+https://github.com/bioimage-io/spec-bioimage-io
6768 pip install --no-deps -e .
6869 - name : pytest-spec-main
69- shell : bash -l {0}
7070 run : pytest --disable-pytest-warnings
7171
7272 test-spec-tf :
@@ -75,24 +75,22 @@ jobs:
7575 matrix :
7676 python-version : [3.7, 3.8, 3.9]
7777 steps :
78- - uses : actions/checkout@v2
78+ - uses : actions/checkout@v3
7979 - name : Install Conda environment with Micromamba
8080 uses : mamba-org/provision-with-micromamba@main
8181 with :
8282 cache-downloads : true
83- cache-env : false # todo: detect env cache hit and adapt(skip?) additional setup (conda remove?)
83+ cache-env : true
8484 environment-file : dev/environment-tf.yaml
8585 channel-priority : flexible
8686 extra-specs : |
8787 python=${{ matrix.python-version }}
8888 - name : additional setup
89- shell : bash -l {0}
9089 run : |
91- conda remove --yes --force bioimageio.spec
90+ conda remove --yes --force bioimageio.spec || true # allow failure for cached env
9291 pip install --no-deps git+https://github.com/bioimage-io/spec-bioimage-io
9392 pip install --no-deps -e .
9493 - name : pytest-spec-tf
95- shell : bash -l {0}
9694 run : pytest --disable-pytest-warnings
9795
9896 test-spec-tf-legacy :
@@ -101,24 +99,22 @@ jobs:
10199 matrix :
102100 python-version : [3.7]
103101 steps :
104- - uses : actions/checkout@v2
102+ - uses : actions/checkout@v3
105103 - name : Install Conda environment with Micromamba
106104 uses : mamba-org/provision-with-micromamba@main
107105 with :
108106 cache-downloads : true
109- cache-env : false # todo: detect env cache hit and adapt(skip?) additional setup (conda remove?)
107+ cache-env : true
110108 environment-file : dev/environment-tf-legacy.yaml
111109 channel-priority : flexible
112110 extra-specs : |
113111 python=${{ matrix.python-version }}
114112 - name : additional setup
115- shell : bash -l {0}
116113 run : |
117- conda remove --yes --force bioimageio.spec
114+ conda remove --yes --force bioimageio.spec || true # allow failure for cached env
118115 pip install --no-deps git+https://github.com/bioimage-io/spec-bioimage-io
119116 pip install --no-deps -e .
120117 - name : pytest-spec-tf-legacy
121- shell : bash -l {0}
122118 run : pytest --disable-pytest-warnings
123119
124120 conda-build :
@@ -140,6 +136,5 @@ jobs:
140136 extra-specs : |
141137 boa
142138 - name : linux conda build
143- shell : bash -l {0}
144139 run : |
145140 conda mambabuild -c conda-forge conda-recipe
0 commit comments