Skip to content

Commit f60e0a8

Browse files
committed
allow failure of conda remove for cached env
1 parent 8363695 commit f60e0a8

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

.github/workflows/build.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
3737
uses: mamba-org/provision-with-micromamba@main
3838
with:
3939
cache-downloads: true
40-
cache-env: false # debugging: torch does not detect onnxruntime
40+
cache-env: true
4141
environment-file: dev/environment-torch.yaml
4242
extra-specs: |
4343
python=${{ matrix.python-version }}
@@ -57,13 +57,13 @@ jobs:
5757
uses: mamba-org/provision-with-micromamba@main
5858
with:
5959
cache-downloads: true
60-
cache-env: false # todo: detect env cache hit and adapt(skip?) additional setup (conda remove?)
60+
cache-env: true
6161
environment-file: dev/environment-torch.yaml
6262
extra-specs: |
6363
python=${{ matrix.python-version }}
6464
- name: additional setup
6565
run: |
66-
conda remove --yes --force bioimageio.spec
66+
conda remove --yes --force bioimageio.spec || true # allow failure for cached env
6767
pip install --no-deps git+https://github.com/bioimage-io/spec-bioimage-io
6868
pip install --no-deps -e .
6969
- name: pytest-spec-main
@@ -80,14 +80,14 @@ jobs:
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
8989
run: |
90-
conda remove --yes --force bioimageio.spec
90+
conda remove --yes --force bioimageio.spec || true # allow failure for cached env
9191
pip install --no-deps git+https://github.com/bioimage-io/spec-bioimage-io
9292
pip install --no-deps -e .
9393
- name: pytest-spec-tf
@@ -104,14 +104,14 @@ jobs:
104104
uses: mamba-org/provision-with-micromamba@main
105105
with:
106106
cache-downloads: true
107-
cache-env: false # todo: detect env cache hit and adapt(skip?) additional setup (conda remove?)
107+
cache-env: true
108108
environment-file: dev/environment-tf-legacy.yaml
109109
channel-priority: flexible
110110
extra-specs: |
111111
python=${{ matrix.python-version }}
112112
- name: additional setup
113113
run: |
114-
conda remove --yes --force bioimageio.spec
114+
conda remove --yes --force bioimageio.spec || true # allow failure for cached env
115115
pip install --no-deps git+https://github.com/bioimage-io/spec-bioimage-io
116116
pip install --no-deps -e .
117117
- name: pytest-spec-tf-legacy

0 commit comments

Comments
 (0)