Skip to content

Commit cfc87b2

Browse files
authored
Merge pull request #216 from ESMValGroup/fix_github_actions
Fix Github Actions tests
2 parents e62a953 + 287e5d1 commit cfc87b2

9 files changed

+50
-55
lines changed

.github/workflows/ci.yml renamed to .github/workflows/build-check-tutorial-site.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: Jekyll site CI
22

33
on:
44
push:
5-
pull_request:
5+
# pull_request: # turn on when GA tests need to run on PRs too
66

77
jobs:
88
build:
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: Test Tutorial Recipes
2+
3+
on:
4+
push:
5+
# pull_request: # turn on for tests to run on PRs
6+
schedule:
7+
- cron: '0 4 * * *'
8+
9+
jobs:
10+
install-esmvaltool-and-run-recipes:
11+
runs-on: "ubuntu-latest"
12+
steps:
13+
- uses: actions/checkout@v2
14+
- name: Cache conda
15+
uses: actions/cache@v1
16+
env:
17+
# Increase this value to reset cache if files/recipe_example.yml has not changed
18+
CACHE_NUMBER: 1
19+
with:
20+
path: ~/conda_pkgs_dir
21+
key: ${{ runner.os }}-conda-${{ env.CACHE_NUMBER }}-${{ hashFiles('files/recipe_example.yml') }}
22+
- uses: conda-incubator/setup-miniconda@v2
23+
with:
24+
python-version: "3.9"
25+
miniconda-version: "latest"
26+
channels: conda-forge
27+
- name: Install mamba
28+
shell: bash -l {0}
29+
run: conda install mamba
30+
- name: Install esmvaltool from conda
31+
shell: bash -l {0}
32+
run: mamba install esmvaltool
33+
# this step is currently unnecessary; might be useful depending on config customizations
34+
- name: Get config-user file
35+
shell: bash -l {0}
36+
run: esmvaltool config get_config_user
37+
- name: Run all warming stripes recipes in files/
38+
shell: bash -l {0}
39+
run: |
40+
mkdir ~/esmvaltool_tutorial
41+
cp files/warming_stripes.py ~/esmvaltool_tutorial/
42+
for file in files/recipe_warming_stripes*.yml; do $CONDA/envs/test/bin/esmvaltool run $PWD/$file --offline=False; done

.github/workflows/recipes.yml

Lines changed: 0 additions & 54 deletions
This file was deleted.

files/recipe_test_fluxcom.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ documentation:
55
authors:
66
- kalverla_peter
77

8+
title: Test recipe fluxcom.
9+
810
maintainer:
911
- kalverla_peter
1012

files/recipe_warming_stripes.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
---
44
documentation:
55
description: Reproducing Ed Hawkins' warming stripes visualization
6+
title: Reproducing Ed Hawkins' warming stripes visualization.
67
authors:
78
- righi_mattia
89

files/recipe_warming_stripes_additional_datasets.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
---
44
documentation:
55
description: Reproducing Ed Hawkins' warming stripes visualization
6+
title: Reproducing Ed Hawkins' warming stripes visualization.
67
authors:
78
- righi_mattia
89

files/recipe_warming_stripes_local.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
---
44
documentation:
55
description: Reproducing Ed Hawkins' warming stripes visualization
6+
title: Reproducing Ed Hawkins' warming stripes visualization.
67
authors:
78
- righi_mattia
89

files/recipe_warming_stripes_multiple_locations.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
---
44
documentation:
55
description: Reproducing Ed Hawkins' warming stripes visualization
6+
title: Reproducing Ed Hawkins' warming stripes visualization.
67
authors:
78
- righi_mattia
89

files/recipe_warming_stripes_periods.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
---
44
documentation:
55
description: Reproducing Ed Hawkins' warming stripes visualization
6+
title: Reproducing Ed Hawkins' warming stripes visualization.
67
authors:
78
- righi_mattia
89

0 commit comments

Comments
 (0)