-
Notifications
You must be signed in to change notification settings - Fork 9
57 lines (54 loc) · 1.4 KB
/
test.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
name: test
on:
push:
paths:
- '**/*.ipynb'
- '**/*.yml'
- '**/*.yaml'
- '**/*.py'
pull_request:
paths:
- '**/*.ipynb'
- '**/*.yml'
- '**/*.yaml'
- '**/*.py'
defaults:
run:
shell: bash -l {0}
jobs:
verify_install:
name: verify installed packages
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/cache@v3
with:
path: |
~/conda_pkgs_dir
/usr/share/miniconda/envs/test
key:
conda-${{ runner.os }}-${{ hashFiles('00_install/environment.yml') }}
- uses: conda-incubator/setup-miniconda@v2
with:
environment-file: 00_install/environment.yml
use-only-tar-bz2: true
- run: python ./00_install/verify_install.py
run_notebooks:
name: run notebooks
needs: [ verify_install ]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/cache@v3
with:
path: |
~/conda_pkgs_dir
/usr/share/miniconda/envs/test
key:
conda-${{ runner.os }}-${{ hashFiles('00_install/environment.yml') }}
- uses: conda-incubator/setup-miniconda@v2
with:
environment-file: 00_install/environment.yml
use-only-tar-bz2: true
- run: pip install nbcollection
- run: python -m nbcollection execute .