Skip to content

Commit 0406696

Browse files
authored
Merge pull request #62 from neuromatch/release-v0.2.0
Release v0.2.0
2 parents 8915c97 + 8f328c2 commit 0406696

35 files changed

Lines changed: 12632 additions & 185 deletions

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

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,12 @@ inputs:
1414
required: false
1515
default: false
1616
type: string
17+
cdsapi_uid:
18+
description: 'CDSAPI UID'
19+
required: true
20+
cdsapi_key:
21+
description: 'CDSAPI Key'
22+
required: true
1723

1824
runs:
1925
using: composite
@@ -47,6 +53,8 @@ runs:
4753
if: "!contains(env.COMMIT_MESSAGE, 'skip ci')"
4854
id: changed-files
4955
uses: tj-actions/changed-files@v35
56+
with:
57+
files_ignore: projects/archive/*
5058

5159
- name: List all changed files
5260
run: |
@@ -79,6 +87,10 @@ runs:
7987
id: process_notebooks
8088
if: ${{ env.NBS != '' }}
8189
run: |
90+
# process notebooks
91+
# add cdsapi credentials for projects
92+
echo "url: https://cds.climate.copernicus.eu/api/v2" >> /home/runner/.cdsapirc
93+
echo "key: ${{ inputs.cdsapi_uid }}:${{ inputs.cdsapi_key }}" >> /home/runner/.cdsapirc
8294
python ci/process_notebooks.py ${{ env.NBS }} ${{ inputs.exec_flag}}
8395
shell: bash -l {0}
8496

.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

.github/workflows/notebook-pr.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,8 @@ jobs:
5959
# exec_flag: '--check-only'
6060
exec_flag: '--execute'
6161
# exercise-continue-on-error: true
62+
cdsapi_uid: ${{ secrets.CDSAPI_UID }}
63+
cdsapi_key: ${{ secrets.CDSAPI_KEY }}
6264

6365
# - name: Add PR comment
6466
# if: ${{ env.NBS != '' }}

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
book/_build/
2+
*.grib
3+
*.idx
24
*.nc
35
*.csv
46
.ipynb_checkpoints/

projects/project-notebooks/ENSO_impact_on_precipitation_and_temperature.ipynb renamed to projects/archive/ENSO_impact_on_precipitation_and_temperature.ipynb

File renamed without changes.
File renamed without changes.
File renamed without changes.

projects/project-notebooks/Regional_precipitation_variability.ipynb renamed to projects/archive/Regional_precipitation_variability.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"cells": [
3-
{
3+
{
44
"cell_type": "markdown",
55
"metadata": {
66
"execution": {}
@@ -554,7 +554,7 @@
554554
"name": "python",
555555
"nbconvert_exporter": "python",
556556
"pygments_lexer": "ipython3",
557-
"version": "3.10.11"
557+
"version": "3.9.16"
558558
}
559559
},
560560
"nbformat": 4,
File renamed without changes.

projects/project-notebooks/Surface_albedo_and_land_cover.ipynb renamed to projects/archive/Surface_albedo_and_land_cover.ipynb

File renamed without changes.

0 commit comments

Comments
 (0)