Skip to content

small updates prophet notebook #20

small updates prophet notebook

small updates prophet notebook #20

Workflow file for this run

name: Build and Deploy Jupyter Book
on:
push:
branches:
- main
workflow_dispatch:
permissions:
contents: write
concurrency:
group: deploy-jupyter-book
cancel-in-progress: false
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up uv
uses: astral-sh/setup-uv@v7
with:
python-version: "3.12"
enable-cache: true
- name: Check user environment sync
run: uv run --no-sync python scripts/sync_user_environment.py --check
- name: Install OpenMP runtime
run: |
sudo apt-get update
sudo apt-get install -y libgomp1 libomp-dev
- name: Install dependencies
run: uv sync --extra notebooks --group docs --group deploy --frozen
- name: Verify DTW compiled backend
run: |
uv run python - <<'PY'
import numpy as np
from dtaidistance import dtw, dtw_ndim
dtw.try_import_c(verbose=True)
x = np.vstack([np.linspace(0.0, 1.0, 12), np.linspace(0.1, 1.1, 12)])
dtw.distance_matrix_fast(x, parallel=False)
y = np.random.default_rng(0).normal(size=(4, 9, 2))
dtw_ndim.distance_matrix_fast(y, parallel=False)
PY
- name: Build package
run: uv build
- name: Smoke test package imports
run: |
uv run python - <<'PY'
import tsa_course.lecture1
import tsa_course.lecture2
import tsa_course.lecture8
import tsa_course.lecture11
PY
- name: Build Jupyter Book
run: uv run --extra notebooks --group docs jupyter-book build . --builder html
- name: Verify build output
run: |
test -d _build/html
ls -la _build/html | head -n 20
- name: Deploy to GitHub Pages
run: uv run --group deploy ghp-import -n -p -f _build/html