Skip to content

Commit

Permalink
chore: Update requirements.lock to use uv pip compile (#86)
Browse files Browse the repository at this point in the history
* 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.
  • Loading branch information
matthewfeickert authored Jan 7, 2025
1 parent 3247788 commit d5a293e
Show file tree
Hide file tree
Showing 5 changed files with 1,717 additions and 1,375 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/deploy-jupyter-book.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,17 +54,21 @@ jobs:
runs-on: ubuntu-latest

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

- name: Set up Python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: "3.x"

- name: Install the latest version of uv
uses: astral-sh/setup-uv@v5
with:
version: "latest"

- name: Install pyodide
run: |
python -m pip install --upgrade pip setuptools wheel
python -m pip install --upgrade \
uv pip install --system --upgrade \
"jupyterlite[lab]" \
"jupytext>=1.14.0"
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
[![JupyterLite](https://jupyterlite.rtfd.io/en/latest/_static/badge.svg)](https://pyhf.github.io/pyhf-tutorial/live/lab/index.html?path=jupyterlite.ipynb)
[![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.4670321.svg)](https://doi.org/10.5281/zenodo.4670321)

[![Deploy Jupyter Book](https://github.com/pyhf/pyhf-tutorial/workflows/Deploy%20Jupyter%20Book/badge.svg?branch=main)](https://pyhf.github.io/pyhf-tutorial/)
[![Deploy Jupyter Book](https://github.com/pyhf/pyhf-tutorial/actions/workflows/deploy-jupyter-book.yml/badge.svg)](https://pyhf.github.io/pyhf-tutorial/)
[![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)

## Setup
Expand Down
Loading

0 comments on commit d5a293e

Please # to comment.