Skip to content

Commit

Permalink
Switch to lastest jupyterbook version (#264)
Browse files Browse the repository at this point in the history
Signed-off-by: zethson <[email protected]>
  • Loading branch information
Zethson authored Apr 6, 2024
1 parent 6fb9adc commit b557e50
Show file tree
Hide file tree
Showing 7 changed files with 27 additions and 31 deletions.
26 changes: 14 additions & 12 deletions .github/workflows/build_book.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,17 @@ jobs:
build-book:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Set up Python 3.10
uses: actions/setup-python@v4
- name: Set up Python 3.11
uses: actions/setup-python@v5
with:
python-version: "3.10"
python-version: "3.11"

- name: Setup environment
run: pip install --upgrade jupyter-book jupytext beautifulsoup4
run: |
pip install uv
uv pip install --system jupyter-book jupytext beautifulsoup4
- name: Cache jupyter-cache folder
uses: actions/cache@v2
Expand All @@ -35,25 +37,25 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Set up Python 3.10
uses: actions/setup-python@v4
- name: Set up Python 3.11
uses: actions/setup-python@v5
with:
python-version: "3.10"
python-version: "3.11"

- name: Install Python dependencies
run: |
python -m pip install --upgrade pip
pip install jupyter-book jupytext beautifulsoup4
python -m pip install --upgrade uv
uv pip install --system jupyter-book jupytext beautifulsoup4
- name: Install Headless Chrome dependencies
run: |
sudo apt-get update
sudo apt-get install -yq $(cat .github/workflows/pyppeteer_requirements.txt)
- name: Install Chromium
run: pip install pyppeteer
run: uv pip install --system pyppeteer

- name: Build PDF from HTML (Docs)
run: make pdf
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/build_environments.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
"jupyter-book/multimodal_integration/advanced_integration.yml",
]
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Install Conda environment with Micromamba
uses: mamba-org/provision-with-micromamba@main
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/labeler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Check out the repository
uses: actions/checkout@v2.3.3
uses: actions/checkout@v4

- name: Run Labeler
uses: crazy-max/[email protected]
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/pre_commit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ jobs:
pre-commit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v3
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
- uses: pre-commit/[email protected]
10 changes: 5 additions & 5 deletions .github/workflows/publish_book.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,15 @@ jobs:
build-book:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- name: Set up Python 3.9
uses: actions/setup-python@v2
- name: Set up Python 3.11
uses: actions/setup-python@v5
with:
python-version: 3.9
python-version: 3.11

- name: Setup environment
run: pip install --upgrade jupyter-book==0.13.2 jupytext beautifulsoup4
run: pip install --upgrade jupyter-book jupytext beautifulsoup4

- name: Cache jupyter-cache folder
uses: actions/cache@v2
Expand Down
6 changes: 0 additions & 6 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,6 @@ repos:
rev: v2.5.1
hooks:
- id: prettier
# Newer versions of node don't work on systems that have an older version of GLIBC
# (in particular Ubuntu 18.04 and Centos 7)
# EOL of Centos 7 is in 2024-06, we can probably get rid of this then.
# See https://github.com/scverse/cookiecutter-scverse/issues/143 and
# https://github.com/jupyterlab/jupyterlab/issues/12675
language_version: "17.9.1"
- repo: https://github.com/psf/black
rev: 22.3.0
hooks:
Expand Down
8 changes: 4 additions & 4 deletions environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ channels:
- defaults
- conda-forge
dependencies:
- conda-forge::python=3.10.6
- conda-forge::jupyter-book==0.13.1
- conda-forge::jupytext==1.14.4
- conda-forge::beautifulsoup4==4.11.1
- conda-forge::python=3.11.8
- conda-forge::jupyter-book==1.0.0
- conda-forge::jupytext==1.16.1
- conda-forge::beautifulsoup4==4.12.3

0 comments on commit b557e50

Please sign in to comment.