-
Notifications
You must be signed in to change notification settings - Fork 3
35 lines (33 loc) · 1.17 KB
/
ci.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
# The CI action below was authored by the Environmental Data Science community, Alejandro Coca-Castro and Anne Fouilloux, as part of the community executable notebook repository templates for conda environments, https://github.com/Environmental-DS-Book/template-executable-notebook
name: ci
on: [push]
jobs:
build:
name: ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: ["ubuntu-latest"]
defaults:
run:
shell: bash -l {0}
steps:
- uses: actions/checkout@v2
- name: Set up conda and dependencies
uses: conda-incubator/setup-miniconda@v2
with:
auto-update-conda: true
activate-environment: repo
environment-file: environment.yml
# Install extra packages
- name: Install jupyter dependencies
run: |
conda install pip
pip install jinja2==3.0.2
pip install jupyter
pip install nbconvert
# Render the notebook
- name: Render the notebook
run: |
jupyter nbconvert --to notebook --ExecutePreprocessor.kernel_name=python3 --inplace --execute tree-crown-detection.ipynb