Skip to content

Updated pint-related code to prevent DeprecationWarning. #191

Updated pint-related code to prevent DeprecationWarning.

Updated pint-related code to prevent DeprecationWarning. #191

Workflow file for this run

name: deploy-book
# Only run this when the main branch changes
on:
push:
branches: [main]
pull_request:
branches: [main]
env:
PYDEVD_DISABLE_FILE_VALIDATION: 1
# This job installs dependencies, builds the book, and pushes it to `gh-pages`
jobs:
deploy-book:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: Setup uv
uses: astral-sh/setup-uv@v5
with:
enable-cache: true
- name: Check the lock file
run: uv lock --check
- name: Install dependencies
run: uv sync --frozen --no-dev --no-editable
# Build the book
- name: Build the book
run: uv run --frozen jupyter-book build -vv -W .
# Push the book's HTML to github-pages
- name: GitHub Pages action
if: github.ref == 'refs/heads/main'
uses: peaceiris/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./_build/html