3939 ref : gh-pages
4040 path : gh-pages
4141 - name : install script deps
42- run : pip install typer bioimageio.spec lxml bioimageio.core packaging
42+ uses : mamba-org/provision-with-micromamba@main
43+ with :
44+ cache-downloads : true
45+ cache-env : true
46+ environment-file : false
47+ environment-name : scriptenv
48+ channels : conda-forge
49+ extra-specs : | # script dependencies
50+ bioimageio.core
51+ bioimageio.spec
52+ lxml
53+ packaging
54+ typer
4355 - name : update RDFs
4456 id : update_rdfs
57+ shell : bash -l {0}
4558 run : python scripts/update_rdfs.py --branch ${{ github.head_ref || github.ref }}
4659 - name : check pending versions limit
4760 if : inputs.check_validation == 'yes' && steps.pending.outputs.retrigger == 'yes'
5063 - name : static validation
5164 if : steps.update_rdfs.outputs.has_pending_matrix_bioimageio == 'yes'
5265 id : static_validation
66+ shell : bash -l {0}
5367 run : python scripts/static_validation.py '${{ steps.update_rdfs.outputs.pending_matrix_bioimageio }}'
5468 - name : Upload static validation summaries and conda envs
5569 if : steps.update_rdfs.outputs.has_pending_matrix_bioimageio == 'yes'
6074 retention-days : 1
6175 - name : check if validation passed
6276 if : steps.update_rdfs.outputs.has_pending_matrix_bioimageio == 'yes' && inputs.check_validation == 'yes'
77+ shell : bash -l {0}
6378 run : python scripts/check_validation_passed.py dist/static_validation_artifact
6479
6580 dynamic-validation :
@@ -86,33 +101,29 @@ jobs:
86101 environment-file : artifacts/static_validation_artifact/${{ matrix.resource_id }}/${{ matrix.version_id }}/conda_env_${{ matrix.weight_format }}.yaml
87102 extra-specs : | # script dependencies
88103 typer
89- bioimageio.spec
104+ conda-forge:: bioimageio.spec
90105 continue-on-error : true # we inspect this step's outcome in dynamic_validation.py
91106 timeout-minutes : 60
92- # atm bioimageio.core imports directly from tqdm, PR to import from spec is on the way...
93- # todo: remove tqdm to avoid spamming logs
94- # - name: remove tqdm to avoid spamming logs
95- # shell: bash -l {0}
96- # run: conda remove --yes --force tqdm
97- # continue-on-error: true
107+ - name : remove tqdm to avoid spamming logs
108+ shell : bash -l {0}
109+ run : conda remove --yes --force tqdm
110+ continue-on-error : true
98111 - name : get artifact name wo forward slashes
99112 id : artifact_name
100113 run : echo ::set-output name=name::dynamic_validation_artifact_$(echo ${{ matrix.resource_id }}_${{ matrix.version_id }}_${{ matrix.weight_format }} | sed 's#/##g')
101114 - name : dynamic validation
102115 shell : bash -l {0}
103- timeout-minutes : 60
104116 run : python scripts/dynamic_validation.py dist/dynamic_validation_artifact ${{ matrix.resource_id }} ${{ matrix.version_id }} ${{ matrix.weight_format }} --create-env-outcome ${{ steps.create_env.outcome }} --${{ contains(inputs.deploy_to, 'gh-pages') && 'no-ignore' || 'ignore' }}-rdf-source-field-in-validation
117+ timeout-minutes : 60
105118 - name : Upload validation summary
106119 uses : actions/upload-artifact@v3
107120 with :
108121 name : ${{ steps.artifact_name.outputs.name }}
109122 path : dist/dynamic_validation_artifact/${{ matrix.resource_id }}/${{ matrix.version_id }}/${{ matrix.weight_format }}
110123 retention-days : 1
111- - name : install script deps
112- if : steps.create_env.outcome == 'success' && inputs.check_validation == 'yes'
113- run : pip install typer bioimageio.spec
114124 - name : check if validation passed
115125 if : inputs.check_validation == 'yes'
126+ shell : bash -l {0}
116127 run : python scripts/check_validation_passed.py dist/dynamic_validation_artifact/${{ matrix.resource_id }}/${{ matrix.version_id }}/${{ matrix.weight_format }}
117128
118129 deploy :
@@ -131,10 +142,24 @@ jobs:
131142 with :
132143 path : artifacts
133144 - name : install script deps
134- run : pip install typer packaging numpy bioimageio.spec lxml
145+ uses : mamba-org/provision-with-micromamba@main
146+ with :
147+ cache-downloads : true
148+ cache-env : true
149+ environment-file : false
150+ environment-name : scriptenv
151+ channels : conda-forge
152+ extra-specs : | # script dependencies
153+ bioimageio.spec
154+ lxml
155+ numpy
156+ packaging
157+ typer
135158 - name : download partner test summaries
159+ shell : bash -l {0}
136160 run : python scripts/download_partner_test_summaries.py
137161 - name : prepare to deploy
162+ shell : bash -l {0}
138163 run : python scripts/prepare_to_deploy.py --branch ${{ github.head_ref || github.ref }}
139164 - name : Deploy to gh-pages 🚀
140165 if : contains(inputs.deploy_to, 'gh-pages')
@@ -145,6 +170,7 @@ jobs:
145170 folder : dist/gh_pages_update
146171 - name : add documentation files to preview
147172 if : contains(inputs.deploy_to, 'preview') # only download documentation for preview to ease review
173+ shell : bash -l {0}
148174 run : python scripts/download_documentation.py --folder dist/gh_pages_update
149175 - name : Upload preview
150176 if : contains(inputs.deploy_to, 'preview')
0 commit comments