Skip to content

Commit d5a293e

Browse files
chore: Update requirements.lock to use uv pip compile (#86)
* Use 'uv pip compile' to build book/requirements.lock. * Update base image to python:3.12-slim-bookworm. * Update nox to use 'uv pip compile'. * Use 'uv pip install' for pyodide in CI. * Update Jupyter Book deployment status to show deployment status.
1 parent 3247788 commit d5a293e

File tree

5 files changed

+1717
-1375
lines changed

5 files changed

+1717
-1375
lines changed

.github/workflows/deploy-jupyter-book.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,17 +54,21 @@ jobs:
5454
runs-on: ubuntu-latest
5555

5656
steps:
57-
- uses: actions/checkout@v3
57+
- uses: actions/checkout@v4
5858

5959
- name: Set up Python
60-
uses: actions/setup-python@v4
60+
uses: actions/setup-python@v5
6161
with:
6262
python-version: "3.x"
6363

64+
- name: Install the latest version of uv
65+
uses: astral-sh/setup-uv@v5
66+
with:
67+
version: "latest"
68+
6469
- name: Install pyodide
6570
run: |
66-
python -m pip install --upgrade pip setuptools wheel
67-
python -m pip install --upgrade \
71+
uv pip install --system --upgrade \
6872
"jupyterlite[lab]" \
6973
"jupytext>=1.14.0"
7074

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
[![JupyterLite](https://jupyterlite.rtfd.io/en/latest/_static/badge.svg)](https://pyhf.github.io/pyhf-tutorial/live/lab/index.html?path=jupyterlite.ipynb)
77
[![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.4670321.svg)](https://doi.org/10.5281/zenodo.4670321)
88

9-
[![Deploy Jupyter Book](https://github.com/pyhf/pyhf-tutorial/workflows/Deploy%20Jupyter%20Book/badge.svg?branch=main)](https://pyhf.github.io/pyhf-tutorial/)
9+
[![Deploy Jupyter Book](https://github.com/pyhf/pyhf-tutorial/actions/workflows/deploy-jupyter-book.yml/badge.svg)](https://pyhf.github.io/pyhf-tutorial/)
1010
[![pre-commit.ci status](https://results.pre-commit.ci/badge/github/pyhf/pyhf-tutorial/main.svg)](https://results.pre-commit.ci/latest/github/pyhf/pyhf-tutorial/main)
1111

1212
## Setup

0 commit comments

Comments
 (0)