-
Notifications
You must be signed in to change notification settings - Fork 780
58 lines (48 loc) · 1.42 KB
/
test.yml
File metadata and controls
58 lines (48 loc) · 1.42 KB
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
# testing all notebooks
name: TEST
on:
workflow_dispatch:
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.11', '3.12']
notebook: [ Ch02-statlearn-lab.ipynb,
Ch03-linreg-lab.ipynb,
Ch04-classification-lab.ipynb,
Ch05-resample-lab.ipynb,
Ch06-varselect-lab.ipynb,
Ch07-nonlin-lab.ipynb,
Ch08-baggboost-lab.ipynb,
Ch09-svm-lab.ipynb,
Ch11-surv-lab.ipynb,
Ch12-unsup-lab.ipynb,
Ch13-multiple-lab.ipynb]
exclude:
- python-version: '3.11'
notebook: Ch10-deeplearning-lab.ipynb
fail-fast: false
steps:
- uses: actions/checkout@v6
- name: Install uv
uses: astral-sh/setup-uv@v7
with:
version: "0.9.28"
- name: Set up Python
shell: bash
run: |
uv python install ${{ matrix.python-version }}
- name: Create venv
shell: bash
run: uv venv --python ${{ matrix.python-version }}
- name: Install requirements
shell: bash
run: |
uv pip install --upgrade pip
uv pip install -r requirements.txt
uv pip install pytest nbmake
- name: Test
shell: bash
run: |
uv run pytest --nbmake --nbmake-timeout=3600 -vv ${{ matrix.notebook }}