-
Notifications
You must be signed in to change notification settings - Fork 34
64 lines (58 loc) · 1.46 KB
/
notebooks-checks.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
59
60
61
62
63
64
name: Notebooks checks
on:
push:
branches:
- main
- '*_rel'
pull_request:
branches: [ main ]
workflow_dispatch:
defaults:
run:
# important to make sure that all commands on Windows are run using Bash
# -l: login shell, needed when using Conda
shell: bash -l {0}
env:
DISPATCHES_TESTING_MODE: "true"
PYTEST_ADDOPTS: >-
--color=yes
-p no:python
-k 'not multiperiod_design_pricetaker_wTEALandSynhist.ipynb'
jobs:
nbcheck-static:
name: Check .ipynb files in repo
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/install
with:
variant: dev
python-version: '3.9'
- name: Run nbcheck (static)
run:
pytest --nbcheck=static
nbcheck-execution:
needs: [nbcheck-static]
name: Execute notebooks (${{ matrix.os }}/py${{ matrix.python-version }})
runs-on: ${{ matrix.os-version }}
strategy:
fail-fast: false
matrix:
python-version: ['3.8', '3.9']
os:
- linux
- win64
include:
- os: linux
os-version: ubuntu-20.04
- os: win64
os-version: windows-2019
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/install
with:
variant: dev
python-version: ${{ matrix.python-version }}
- name: Run nbcheck (execution)
run:
pytest --nbcheck=exec --cell-timeout=750 --durations=0