-
Notifications
You must be signed in to change notification settings - Fork 12
58 lines (47 loc) · 1.24 KB
/
eva_tests_notebook.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
name: Eva Notebook Tests
on:
push:
branches:
- develop
pull_request:
types:
- opened
- synchronize
- reopened
jobs:
evaapp:
name: Run eva notebook tests
runs-on: ubuntu-latest
steps:
# Setup Python
- name: Set up Python 3.10
uses: actions/setup-python@v2
with:
python-version: 3.10.10
# Update conda
- name: Update conda
run: conda update -n base -c defaults conda
# Install pip
- name: Install pip
run: conda install pip
# Install cartopy
- name: Install cartopy
run: conda install -c conda-forge cartopy
# Clone the eva code
- name: Clone eva repo
uses: actions/checkout@v2
with:
lfs: true
# Install eva
#- name: Upgrade pip
# run: $CONDA/bin/pip3 install --upgrade pip
- name: Install eva and dependencies
run: $CONDA/bin/pip3 install --use-deprecated=legacy-resolver -r requirements-github.txt --user .
- name: Put eva in the path
run: echo "$HOME/.local/bin" >> $GITHUB_PATH
# Install ipykernel
- name: Install ipykernel
run: $CONDA/bin/pip3 install ipykernel
# Run the eva test suite
- name: Run eva notebook tests
run: eva_tests notebook