-
Notifications
You must be signed in to change notification settings - Fork 41
153 lines (137 loc) · 6.87 KB
/
run-notebooks.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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
name: Test
on:
push:
paths-ignore:
- "docs/**"
- "images/**"
- "*.md"
- "IndustrialStatistics/**"
pull_request:
paths-ignore:
- "docs/**"
- "images/**"
- "*.md"
concurrency:
group: build-${{ github.ref }}
cancel-in-progress: true
jobs:
build-modern:
if:
github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
# 3.11-dev fails due to compilation of scipy
#
matrix:
python-version: ["3.10", "3.11", "3.12"]
os: [ubuntu-latest, windows-latest]
steps:
- uses: actions/checkout@v3
- uses: conda-incubator/setup-miniconda@v3
with:
auto-update-conda: true
python-version: ${{ matrix.python-version }}
# - name: Set up Python ${{ matrix.python-version }}
# uses: actions/setup-python@v4
# with:
# python-version: ${{ matrix.python-version }}
# - name: Windows specific setup
# if: matrix.os == 'windows-latest'
# run: |
# set BLAS=C:/Program Files/R/R-4.3.3/bin/x64Rblas.dll
# set BLAS=C:/Program Files/R/R-4.3.3/bin
# - name: Install graphviz
# if: matrix.os == 'ubuntu-latest'
# run: |
# sudo apt install -y graphviz
- name: Setup Graphviz
uses: ts-graphviz/setup-graphviz@v1
- name: Install dependencies
run: |
conda install scipy
conda install conda-forge::fdasrsf
pip install --upgrade pip
pip install --upgrade wheel
pip install --upgrade jinja2
pip install -r requirements-modern.txt
cat requirements-modern.txt
- name: Execute notebooks
env:
PYDEVD_DISABLE_FILE_VALIDATION: 1
run: |
jupyter nbconvert --to notebook --execute ModernStatistics/notebooks/Chap001.ipynb
jupyter nbconvert --to notebook --execute ModernStatistics/notebooks/Chap002.ipynb
jupyter nbconvert --to notebook --execute ModernStatistics/notebooks/Chap003.ipynb
jupyter nbconvert --to notebook --execute ModernStatistics/notebooks/Chap004.ipynb
jupyter nbconvert --to notebook --execute ModernStatistics/notebooks/Chap005.ipynb
jupyter nbconvert --to notebook --execute ModernStatistics/notebooks/Chap006.ipynb
jupyter nbconvert --to notebook --execute ModernStatistics/notebooks/Chap007.ipynb
jupyter nbconvert --to notebook --execute ModernStatistics/notebooks/Chap008.ipynb
jupyter nbconvert --to notebook --execute ModernStatistics/solutions/Solution_Chap001_ex.ipynb
jupyter nbconvert --to notebook --execute ModernStatistics/solutions/Solution_Chap002_ex.ipynb
jupyter nbconvert --to notebook --execute ModernStatistics/solutions/Solution_Chap003_ex.ipynb
jupyter nbconvert --to notebook --execute ModernStatistics/solutions/Solution_Chap004_ex.ipynb
jupyter nbconvert --to notebook --execute ModernStatistics/solutions/Solution_Chap005_ex.ipynb
jupyter nbconvert --to notebook --execute ModernStatistics/solutions/Solution_Chap006_ex.ipynb
jupyter nbconvert --to notebook --execute ModernStatistics/solutions/Solution_Chap007_ex.ipynb
jupyter nbconvert --to notebook --execute ModernStatistics/solutions/Solution_Chap008_ex.ipynb
build-industrial:
if:
github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
python-version: ["3.10", "3.11", "3.12"]
os: [ubuntu-latest, windows-latest]
steps:
- uses: actions/checkout@v3
- uses: conda-incubator/setup-miniconda@v3
with:
auto-update-conda: true
python-version: ${{ matrix.python-version }}
# - name: Set up Python ${{ matrix.python-version }}
# uses: actions/setup-python@v4
# with:
# python-version: ${{ matrix.python-version }}
- name: Install Linux packages
if: matrix.os == 'ubuntu-latest'
run: |
sudo apt install -y graphviz
sudo apt-get install libblas-dev liblapack-dev
- name: Install dependencies
run: |
conda install scipy
# conda install conda-forge::fdasrsf
pip install --upgrade pip
pip install --upgrade wheel
pip install --upgrade jinja2
pip install -r requirements-industrial.txt
pip freeze
- name: Execute notebooks
env:
PYDEVD_DISABLE_FILE_VALIDATION: 1
run: |
jupyter nbconvert --to notebook --execute IndustrialStatistics/notebooks/Chap001.ipynb
jupyter nbconvert --to notebook --execute IndustrialStatistics/notebooks/Chap002.ipynb
jupyter nbconvert --to notebook --execute IndustrialStatistics/notebooks/Chap003.ipynb
jupyter nbconvert --to notebook --execute IndustrialStatistics/notebooks/Chap004.ipynb
jupyter nbconvert --to notebook --execute IndustrialStatistics/notebooks/Chap005.ipynb
jupyter nbconvert --to notebook --execute IndustrialStatistics/notebooks/Chap006.ipynb
jupyter nbconvert --to notebook --execute IndustrialStatistics/notebooks/Chap007.ipynb
jupyter nbconvert --to notebook --execute IndustrialStatistics/notebooks/Chap008.ipynb
jupyter nbconvert --to notebook --execute IndustrialStatistics/notebooks/Chap009.ipynb
jupyter nbconvert --to notebook --execute IndustrialStatistics/notebooks/Chap010.ipynb
jupyter nbconvert --to notebook --execute IndustrialStatistics/notebooks/Chap011.ipynb
jupyter nbconvert --to notebook --execute IndustrialStatistics/solutions/Solution_Chap001_ex.ipynb
jupyter nbconvert --to notebook --execute IndustrialStatistics/solutions/Solution_Chap002_ex.ipynb
jupyter nbconvert --to notebook --execute IndustrialStatistics/solutions/Solution_Chap003_ex.ipynb
jupyter nbconvert --to notebook --execute IndustrialStatistics/solutions/Solution_Chap004_ex.ipynb
jupyter nbconvert --to notebook --execute IndustrialStatistics/solutions/Solution_Chap005_ex.ipynb
jupyter nbconvert --to notebook --execute IndustrialStatistics/solutions/Solution_Chap006_ex.ipynb
jupyter nbconvert --to notebook --execute IndustrialStatistics/solutions/Solution_Chap007_ex.ipynb
jupyter nbconvert --to notebook --execute IndustrialStatistics/solutions/Solution_Chap008_ex.ipynb
jupyter nbconvert --to notebook --execute IndustrialStatistics/solutions/Solution_Chap009_ex.ipynb
jupyter nbconvert --to notebook --execute IndustrialStatistics/solutions/Solution_Chap010_ex.ipynb
jupyter nbconvert --to notebook --execute IndustrialStatistics/solutions/Solution_Chap011_ex.ipynb