Skip to content

Commit e5b08b5

Browse files
committed
retry processing installing eccodes and other deps in the setup workflow
1 parent d84b28e commit e5b08b5

3 files changed

Lines changed: 6 additions & 6 deletions

File tree

.github/actions/check-notebooks/action.yaml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -88,10 +88,6 @@ runs:
8888
if: ${{ env.NBS != '' }}
8989
run: |
9090
# process notebooks
91-
pip install xarray[complete]
92-
pip install eccodes
93-
pip install cfgrib
94-
python -m cfgrib selfcheck
9591
# add cdsapi credentials for projects
9692
echo "url: https://cds.climate.copernicus.eu/api/v2" >> /home/runner/.cdsapirc
9793
echo "key: ${{ inputs.cdsapi_uid }}:${{ inputs.cdsapi_key }}" >> /home/runner/.cdsapirc

.github/actions/setup/action.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,12 +133,16 @@ runs:
133133
- name: Update environment
134134
if: ${{steps.cache-python.outputs.cache-hit != 'true' || inputs.force_env_update == 'true'}}
135135
run: |
136+
# Install python dependencies
136137
# mamba env update -n climatematch -f environment.yml
137138
pip install -r ci/requirements.txt
138139
pip install -r requirements.txt
140+
pip install ecmwflibs
141+
pip install eccodes==1.3.1
142+
pip install cfgrib
143+
python -m cfgrib selfcheck
139144
pip install requests aiohttp
140145
pip install jupyter-book==0.14.0 ghp-import cftime pyleoclim importlib-metadata==4.13.0
141-
# pip install climlab==0.8.2
142146
shell: bash -l {0}
143147

144148
- name: Build climlab from source

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,4 +46,4 @@ mystatsfunctions @ https://github.com/njleach/mystatsfunctions/archive/main.zip
4646
dicelib @ https://github.com/mptouzel/PyDICE/archive/master.zip
4747
cdsapi
4848
texttable
49-
cfgrib
49+
# cfgrib

0 commit comments

Comments
 (0)