-
-
Notifications
You must be signed in to change notification settings - Fork 0
54 lines (51 loc) · 1.46 KB
/
main.yaml
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
name: CI
on:
push:
branches: "*"
pull_request:
branches: main
jobs:
test:
name: ${{ matrix.python-version }}-build
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.8]
steps:
- uses: actions/checkout@v2
- uses: conda-incubator/setup-miniconda@v2
with:
mamba-version: "*"
channels: conda-forge
environment-file: binder/environment.yml
python-version: ${{ matrix.python-version }}
activate-environment: python3
- shell: bash -l {0}
run: |
conda info
conda list
- shell: bash -l {0}
run: |
mamba install -c conda-forge jupyter nbconvert
# jupyter kernelspec install --user --name python3
- shell: bash -l {0}
name: Running Tests
run: |
for nb in **/*.ipynb; do
echo $nb
# skip Inline-Statistics until we can install carbonplan-forest-offsets from pypi
if [[ $nb == "notebooks/Inline-Statistics.ipynb" ]]; then
echo "skipping $nb"
continue
fi
time jupyter nbconvert --to notebook --execute $nb
done
repo2docker:
runs-on: ubuntu-latest
steps:
- name: checkout files in repo
uses: actions/checkout@main
- name: update jupyter dependencies with repo2docker
uses: jupyterhub/repo2docker-action@master
with:
NO_PUSH: "true"